Plot the distribution of length (cm) at age by year and season.
Usage
plot_dist_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, length_sd_a, min_age, max_age, first_yr, and last_yr.
- 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 the distribution of length at age.
Details
The plotted densities are simulated with stats::rnorm().
This consumes and changes the caller's random-number state.