
Create a hover-enabled plotly plot from a mizer object
Source:R/ArraySpeciesBySize-class.R, R/ArrayTimeBySpecies-class.R, R/ArrayTimeBySpeciesBySize-class.R, and 3 more
plotHover.RdCreates 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, orArrayTimeBySpeciesBySizeobject.- ...
Arguments passed to the corresponding
plot()method for mizer array objects, or toplotly::ggplotly()formizer_plotobjects.
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))
# }