Plot recruitment by year.
Usage
plot_recruitment(data, object, posterior = NULL, probs = c(0.025, 0.975))Arguments
- data
A
listcontaining data passed toMakeADFun, must containfirst_yrandlast_yr.- object
A
listspecifying the AD object created usingMakeADFun.- posterior
An snutsfit/tmbfit object or
NULLcontaining optional posterior samples created usingtmbstanorsample_sparse_tmb(defaultNULL).- probs
A
numericvector of probabilities with values in \[0,1\] for plotting quantiles of the posterior distribution (default c(0.025, 0.975)).
