Plot catch (in thousands of tonnes) by year, season, and fishery.
Usage
plot_catch(
data,
object,
posterior = NULL,
proj = NULL,
probs = c(0.05, 0.95),
plot_resid = FALSE
)Arguments
- data
A
listcontaining the data that was passed toMakeADFun.- object
A
listspecifying the AD object created usingMakeADFun.- posterior
An
rstanobject created using thetmbstanfunction for Bayesian inference. Default isNULL.- proj
A
matrixof projected catch values with dimensions matchingdata$catch_obs_ysf. Default isNULL.- probs
A numeric vector of length 2 with probabilities in
[0,1]for plotting quantiles of the posterior distribution. Default isc(0.05, 0.95).- plot_resid
A logical value indicating whether to plot the residuals instead of the catch. Default is
FALSE.
