Plots Length, Weight, Maturity, Natural-Mortality, Selectivity, and Retention-at-Age schedules.
Usage
plot_at_Age(
x,
quantiles = c(0.025, 0.975),
scale = NULL,
variable = "Length",
xlab = "Age (Year)",
ylab = NULL,
title = "",
years = NULL,
alpha = 0.1,
lwd = 1,
use_theme = NULL,
colpalette = "Dark2",
print = TRUE
)
plot_Length(x, ...)
plot_Weight(x, ...)
plot_Maturity(x, ...)
plot_N.Mortality(x, ...)
plot_Select(x, ...)
plot_Retention(x, ...)
plot_Select_Maturity(x, ...)
Arguments
- x
An object of class
Hist
,MSE
, or a list ofHist
orMSE
objects- quantiles
Lower and upper quantiles to calculate. Numeric vector of length 2.
- scale
An optional function with a single numeric argument that returns transformed or scaled numeric values. See
lb2kg
andkg2lb
for example. Can be a list of functions for list objects (NA for no transformation)- variable
String. One of 'Length', 'Weight', 'N.Mortality','Maturity', 'Select', 'Retention'
- xlab
X-axis label (default 'Age (Year)')
- ylab
Y-axes label
- title
Optional title
- years
Optional numeric vector specifying the years to plot. Default is the first and last historical year, and the last projection year
- alpha
Transparency parameter
- lwd
Line width
- use_theme
Optional ggplot theme
- colpalette
Color palette from
RColorBrewer
Logical. Print the plot?
- ...
Named arguments passed to
plot_at_Age
Value
A named list with:
p | The ggplot object |
df | Data.frame with the summary statistics (median and quantiles) |
Details
Note that the Selectivity and Retention curves in these plots are from the operating model. If an MP changes the selectivity/retention, this is not shown in these plots.
Functions
plot_Length()
: Plot Length-at-Ageplot_Weight()
: Plot Weight-at-Ageplot_Maturity()
: Plot Maturity-at-Ageplot_N.Mortality()
: Plot N.Mortality-at-Ageplot_Select()
: Plot Selectivity-at-Ageplot_Retention()
: Plot Retention -at-Ageplot_Select_Maturity()
: Plot Selectivity-, Retention-, and Maturity-at-Age