Plot the spawning biomass (tonnes) or relative spawning biomass by year.
Usage
plot_biomass_spawning(
data,
object,
grid = NULL,
posterior = NULL,
probs = c(0.025, 0.975),
relative = TRUE
)
Arguments
- data
a
list
containing the data that was passed toMakeADFun
.- object
a
list
specifying the AD object created using theMakeADFun
function.- grid
a
list
of objects representing a grid of model runs.- posterior
an
rstan
objected created using thetmbstan
function.- 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.