plot_comparison: Create an n-panel plot of the biomass, relative biomass, or...

plot_comparisonR Documentation

Create an n-panel plot of the biomass, relative biomass, or recruitment for a set of models comparing a value

Description

Create an n-panel plot of the biomass, relative biomass, or recruitment for a set of models comparing a value

Usage

plot_comparison(
  lst = NULL,
  plot_func = NULL,
  label_text = "Variable x",
  panel_axis_titles_size = 11,
  panel_axis_text_size = 8,
  scale = 1,
  digits = 0,
  ...
)

Arguments

lst

A list, as returned from group_test_models()

plot_func

The plotting function to use. Typically plot_biomass(), plot_rel_biomass(), or plot_recruitment()

label_text

The text to paste on the label that is shown on each panel

panel_axis_titles_size

Font size for the axis labels

panel_axis_text_size

Font size for the axis tick labels

scale

Number to divide the label by (used to divide adapt delta values by 100 so they are less than 1)

digits

The number of decimal places to make the label numbers

...

Arguments to pass to the plotting function defined by plot_func

Value

A ggplot2::ggplot() object


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