Skip to contents

Companion to get_catch_fits_plot for the at-age data sources: retained catch, discards, and the fishery and survey indices at age. Each is a lognormal observation with its own standard deviation, so intervals are built the same way, and the panel is faceted by age.

Usage

get_at_age_fits_plot(data, rep, model_names, data_source = "CatchAA")

Arguments

data

List of length n_models of SPoRC data lists, read for the at-age observation and use arrays.

rep

List of length n_models of SPoRC model reports, read for the predicted at-age values and their standard deviations.

model_names

Character vector naming each model run.

data_source

Which data source to plot: "CatchAA" (default), "DiscardAA" or "SrvIdxAA".

Value

A ggplot, or NULL when no model fits that data source.