Plots figure of residuals (or any time series with predicted mean of zero).
plot_residuals(
Year,
res,
res_sd = NULL,
res_sd_CI = 0.95,
res_upper = NULL,
res_lower = NULL,
res_ind_blue = NULL,
draw_zero = TRUE,
zero_linetype = 2,
label = "Residual"
)
A vector of years for the data.
A vector of residuals.
A vector of year specific standard deviation for res
.
The confidence interval for the error bars based for res_sd
.
A vector of year-specific upper bounds for the error bars of the residual (in lieu of argument res_CV
).
A vector of year-specific lower bounds for the error bars of the residual (in lieu of argument res_CV
).
Indices of obs
for which the plotted residuals and error bars will be blue.
Indicates whether a horizontal line should be drawn at zero.
Passes argument lty
(e.g. solid line = 1, dotted = 2) to draw_zero
.
Character string that describes the data to label the y-axis.
A plot of model residuals by year (optionally, with error bars).