Skip to contents

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 to MakeADFun.

object

a list specifying the AD object created using the MakeADFun function.

grid

a list of objects representing a grid of model runs.

posterior

an rstan objected created using the tmbstan 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.

Value

a ggplot2 object.