plot_spr_illustration: Create a three-panel plot illustrating how the SPR is...

View source: R/plot-spr-illustration.R

plot_spr_illustrationR Documentation

Create a three-panel plot illustrating how the SPR is calculated.

Description

Create a three-panel plot illustrating how the SPR is calculated.

Usage

plot_spr_illustration(
  model,
  yrs = NULL,
  color = "royalblue",
  show_legend = TRUE
)

Arguments

model

A model object, , created by create_rds_file()

yrs

A vector of years to include in the calculation. If NULL, the years found in the weight-at-age data frame (model$wtatage) will be used

color

The color to use for the bars

show_legend

Logical. Whether or not to show the text 'legend'

Value

A ggplot2::ggplot() object


pacific-hake/hake-assessment documentation built on Jan. 14, 2025, 9:12 p.m.