Plots the observed catch and discard series against the predictions of one or more SPoRC runs, pooled and population-specific. Pooled predictions are summed across populations first, and years with a zero observation are dropped from both layers so the lognormal intervals can be built.
Arguments
- data
List of length
n_models, each a SPoRC data list.ObsCatch[n_regions × n_yrs × n_seas × n_fish_fleets]andObsDiscardhold the pooled observations, andWt_Catch,Wt_Discardandln_sigmaCrebuild the observation error standard deviations for the intervals.ObsCatch_popandObsDiscard_popwith their weights are read whenUseCatch_poporUseDiscard_pophold active elements.- rep
List of length
n_models, each a SPoRC report fromobj$report().PredCatchandPredDiscard[n_pop × n_regions × n_yrs × n_seas × n_fish_fleets]are summed across populations for the pooled series and read directly for the population-specific ones, withln_sigmaCandln_sigmaC_popfor the intervals.- model_names
Character vector of length
n_modelsof display names, used in the legend.
Value
A list of four ggplot objects: the pooled catch fits, produced
when UseCatch == 1 and faceted by season and fleet against region with
free y-scales; the population-specific catch fits, produced when
UseCatch_pop == 1 and faceted by population, season and fleet against
region; and the two discard counterparts, produced when UseDiscard and
UseDiscard_pop are 1. Observations are drawn as
geom_pointrange with 95% lognormal intervals and predictions as lines
colored by model. An element is NULL when its data source is unused.