plot_twopanel_comparison: Plot a two-panel comparison using SSplotComparisons

View source: R/plot_twopanel_comparison.R

plot_twopanel_comparisonR Documentation

Plot a two-panel comparison using SSplotComparisons

Description

Plot a two-panel time series comparison of spawning biomass and relative spawning biomass for Lingcod

Usage

plot_twopanel_comparison(
  mods,
  legendlabels = NULL,
  filename = NULL,
  print = TRUE,
  dir = "figures/compare",
  hessian = TRUE,
  endyrvec = 2021,
  ylimAdj1 = 1.05,
  ylimAdj2 = 1.05,
  verbose = TRUE,
  ...
)

Arguments

mods

A list of model objects as created by r4ss::SS_output(), grouped together as a list(), or by r4ss::SSgetoutput()

legendlabels

Labels for use in the legend. NULL value will use the lingcod model id

filename

file to write to (relative to the "figures" directory) NULL value will use a filename like ⁠compare_[id1]_[id2].png⁠

print

TRUE/FALSE print to a png file: filename or the current graphics device

dir

Where to put the PNG file if print = TRUE.

endyrvec

final year to include in the figure passed to r4ss::SSplotComparisons()

ylimAdj1

adjustment to y-axis limit for the first plot, relative to highest point among all models shown

ylimAdj2

adjustment to y-axis limit for the second plot, relative to highest point among all models shown

verbose

A logical value specifying if output should be printed to the console or not. The default is FALSE, which will suppress messages.

dots

additional arguments that will get passed to r4ss::SSplotComparisons()

Author(s)

Ian G. Taylor

Examples

## Not run: 
  plot_twopanel_comparison(mods = list(mod.2019.s.002.002,
                                       mod.2019.s.003.001),
                           endyrvec = 2019)

## End(Not run)

iantaylor-NOAA/Lingcod_2021 documentation built on Oct. 30, 2024, 6:42 p.m.