
Plot method for ArrayResourceBySize objects
Source: R/ArrayResourceBySize-class.R
plot.ArrayResourceBySize.RdSee plot() for an overview of the mizer plotting system and the
arguments shared by all of its methods.
Arguments
- x
An
ArrayResourceBySizeobject.- return_data
If
TRUE, return the data frame instead of the plot.- log_x
If
TRUE, use a log10 x-axis. Default isTRUE.- log_y
If
TRUE, use a log10 y-axis. Default isTRUE.- log
Character string specifying which axes should use log10 scales, in the same form as the base
plot()argument. For example,"x","y","xy"or"". If supplied, this overrideslog_xandlog_y.- wlim
A numeric vector of length two providing lower and upper limits for the weight (x) axis. Use
NAto refer to the existing minimum or maximum.- llim
A numeric vector of length two providing lower and upper limits for the length (x) axis when
size_axis = "l". UseNAto refer to the existing minimum or maximum.- ylim
A numeric vector of length two providing lower and upper limits for the value (y) axis. Use
NAto refer to the existing minimum or maximum.- size_axis
Whether to plot size as weight (
"w", default) or length ("l"), using the weight-length relationship inresource_params().- per_log_size
For an array that holds a density, whether to plot it per logarithmic size (
TRUE) rather than per size (FALSE). The default,NULL, plots the density as it stands. An error for an array that does not hold a density.- y_ticks
The approximate number of ticks desired on the y axis.
- ...
Unused.
Examples
# \donttest{
plot(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.
plot(initialNResource(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.
# }