Skip to contents

Creates an interactive plotly version of a mizer plot. Can be called on any mizer array object (such as those returned by getEncounter(), getBiomass(), etc.) or on any mizer_plot object returned by the named plot functions such as plotBiomass(), plotSpectra(), etc.

Usage

# S3 method for class 'ArrayTimeBySpecies'
plotHover(x, ...)

# S3 method for class 'MizerScan'
plotHover(x, ...)

plotHover(x, ...)

Arguments

x

A mizer_plot, ArraySpeciesBySize, ArrayTimeBySpecies, or ArrayTimeBySpeciesBySize object.

...

Arguments passed to the corresponding plot() method for mizer array objects, or to plotly::ggplotly() for mizer_plot objects.

Value

A plotly object.

Examples

# \donttest{
plotHover(getEncounter(NS_params))
#>  No `a` column so using a = 0.01 in w = a l^b, with w in g and l in cm.
#>  No `b` column so using the isometric default b = 3 in w = a l^b.
#>  No `a` column so using a = 0.01 in w = a l^b, with w in g and l in cm.
#>  No `b` column so using the isometric default b = 3 in w = a l^b.
#>  No `a` column so using a = 0.01 in w = a l^b, with w in g and l in cm.
#>  No `b` column so using the isometric default b = 3 in w = a l^b.
#>  No `a` column so using a = 0.01 in w = a l^b, with w in g and l in cm.
#>  No `b` column so using the isometric default b = 3 in w = a l^b.
# } # \donttest{ plotHover(getBiomass(NS_sim))
# } # \donttest{ plotHover(getFMort(NS_sim))
# } # \donttest{ plotHover(getResourceMort(NS_params)) #> No `a` column so using a = 0.01 in w = a l^b, with w in g and l in cm. #> No `b` column so using the isometric default b = 3 in w = a l^b.
# } # \donttest{ plotHover(NResource(NS_sim))
# }