Plot the spawning biomass (tonnes) or relative spawning biomass by year for a single model run, a grid of model runs, or an MCMC.
Usage
plot_biomass_spawning(
data,
object,
grid = NULL,
posterior = NULL,
probs = c(0.025, 0.975),
relative = TRUE
)Arguments
- data
a
listcontaining the data that was passed toMakeADFun.- object
a
listspecifying the AD object created using theMakeADFunfunction.- grid
a
listof objects representing a grid of model runs.- posterior
an
rstanobjected created using thetmbstanfunction.- probs
a numeric vector of probabilities with values in
[0,1]for plotting quantiles of the posterior distribution. Defaults to the 90% credible interval.- relative
if the plot should be relative spawning biomass.
