plot_SSB {LeMaRns} | R Documentation |
Plot Spawning Stock Biomass (SSB)
Description
Plots community and/or species-specific Spawning Stock Biomass (SSB) or total biomass.
Usage
plot_SSB(inputs, outputs, ...)
## S4 method for signature 'LeMans_param,LeMans_outputs'
plot_SSB(inputs, outputs, species, time_steps, species_names, SSB, ...)
## S4 method for signature 'LeMans_param,missing'
plot_SSB(inputs, N, species, time_steps, species_names, SSB, ...)
## S4 method for signature 'missing,LeMans_outputs'
plot_SSB(wgt, mature, outputs, species, time_steps, species_names, SSB, ...)
## S4 method for signature 'missing,missing'
plot_SSB(
wgt,
mature,
N,
species,
species_names,
time_steps,
SSB,
full_plot_only = TRUE,
units = "g",
...
)
plot_biomass(inputs, outputs, ...)
## S4 method for signature 'LeMans_param,LeMans_outputs'
plot_biomass(inputs, outputs, species, time_steps, species_names, biomass, ...)
## S4 method for signature 'LeMans_param,missing'
plot_biomass(inputs, N, species, time_steps, biomass, species_names, ...)
## S4 method for signature 'missing,LeMans_outputs'
plot_biomass(wgt, outputs, species, time_steps, biomass, species_names, ...)
## S4 method for signature 'missing,missing'
plot_biomass(
wgt,
N,
species,
time_steps,
species_names,
biomass,
full_plot_only = TRUE,
units = "g",
...
)
Arguments
inputs |
A |
outputs |
A |
... |
Additional arguments. |
species |
A numeric value or vector or a character string or vector denoting the species to be used in the plot(s). The default is |
time_steps |
A numeric vector denoting the time steps to be used to calculate and/or plot SSB. The default is |
species_names |
A character vector of length |
SSB |
A numeric vector or a matrix representing the outputs of the function |
N |
An array with dimensions |
wgt |
A matrix with dimensions |
mature |
A matrix with dimensions |
full_plot_only |
A logical statement indicating whether a single plot depicting the SSB of all of the selected species should be produced ( |
units |
A character string denoting the units of weight used in the model. The default is |
biomass |
A numeric vector or a matrix representing the outputs of the function |
Value
plot_SSB
returns line plots of the in SSB of the selected species through time.
plot_biomass
returns line plots of the changes in biomass of the selected species through time.
See Also
Examples
# Set up and run the model
NS_params <- LeMansParam(NS_par, tau=NS_tau, eta=rep(0.25, 21), L50=NS_par$Lmat, other=1e12)
effort <- matrix(0.5, 10, dim(NS_params@Qs)[3])
model_run <- run_LeMans(NS_params, years=10, effort=effort)
# Calculate SSB
SSB <- get_SSB(NS_params, model_run)
# Plot SSB
plot_SSB(SSB=SSB)
# Calculate biomass
biomass <- get_biomass(NS_params, model_run)
# Plot biomass
plot_biomass(biomass=biomass)