Plot natural mortality (M) by age.
Usage
plot_natural_mortality(data, object, posterior = NULL, probs = c(0.025, 0.975))Arguments
- data
A
listcontaining the data that was passed toMakeADFun, includingmin_ageandmax_age.- object
A
listspecifying the AD object created usingMakeADFun, with areport()method that returnsM_a.- posterior
An
rstanobject created using thetmbstanfunction. If provided, posterior distributions are plotted. Default isNULL.- probs
A numeric vector of probabilities with values in
[0,1]for plotting quantiles of the posterior distribution. Default isc(0.025, 0.975).
