Plot recruitment deviates by year.
Usage
plot_rec_devs(
data,
object,
proj = NULL,
posterior = NULL,
probs = c(0.025, 0.975),
n_worms = 3
)Arguments
- data
A
listcontaining data passed toMakeADFun, must containfirst_yrandlast_yr.- object
A
listspecifying the AD object created usingMakeADFun.- proj
A
listorNULLcontaining optional projection data withproj_rdev_y(defaultNULL).- 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)).- n_worms
An
integerspecifying the number of random posterior trajectories to display (default 3).
