Plot time series of observed (with lognormally-distributed error bars) vs. predicted data.
plot_timeseries(
Year,
obs,
fit = NULL,
obs_CV = NULL,
obs_CV_CI = 0.95,
obs_upper = NULL,
obs_lower = NULL,
obs_ind_blue = NULL,
fit_linewidth = 3,
fit_color = "red",
label = "Observed data"
)
A vector of years for the data.
A vector of observed data.
A vector of predicted data (e.g., from an assessment model).
A vector of year-specific coefficient of variation in the observed data.
The confidence interval for the error bars based for obs_CV
.
A vector of year-specific upper bounds for the error bars of the observed data (in lieu of argument obs_CV
).
A vector of year-specific lower bounds for the error bars of the observed data (in lieu of argument obs_CV
).
Indices of obs
for which the plotted points and error bars will be blue.
Argument lwd
for fitted line.
Color of fitted line.
Character string that describes the data to label the y-axis.
A plot of annual observed data and predicted values from a model.
data(Red_snapper)
plot_timeseries(Red_snapper@Year, Red_snapper@Cat[1, ],
obs_CV = Red_snapper@CV_Cat, label = "Catch")