Get Index Fits Plot
get_idx_fits_plot.RdPlots observed survey and fishery indices alongside model-predicted values
for one or more SPoRC model runs. Observed values are shown as points with
approximate 95
lines coloured by model. Years where the observed index is zero (i.e.
Use*Idx = 0) are excluded from both the points and lines.
Arguments
- data
List of length
n_models, where each element is a SPoRC data list. Passed toget_idx_fitsalong withrep[[i]]; year labels are taken fromdata[[i]]$years.- rep
List of length
n_models, where each element is a SPoRC report list (i.e. the output ofobj$report()after optimisation). Predicted index values are extracted internally viaget_idx_fits.- model_names
Character vector of length
n_modelsgiving display names for each model run. Used as the colour legend label on predicted trajectories.
Value
A single ggplot object. Observed indices are shown as
geom_pointrange (black) with lower and upper confidence interval
bounds from get_idx_fits. Predicted indices are shown as
geom_line coloured by model.