Skip to contents

Plot the mean length (cm) at age by year and season. Plus and minus one standard deviation is also plotted.

Usage

plot_length_at_age(fit = NULL, years = c(1931L, 2022L), data = NULL)

Arguments

fit

An sbt_fit object, or a legacy model data list. It must include length_mu_ysa and length_sd_a.

years

A numeric vector specifying which years to display on the plot. Default is c(1931, 2022).

data

Legacy named alias for a model data list.

Value

A ggplot2 object displaying mean length at age with shaded standard deviation bands.