plot_historical_probs_retro: Make individual plots (or one overlaid) of historical...

View source: R/plot-historical-probs-retro.R

plot_historical_probs_retroR Documentation

Make individual plots (or one overlaid) of historical probability calculations that uses retrospective runs (given we have them). Calls make.historical.probs.plot() for each retrospective

Description

Make individual plots (or one overlaid) of historical probability calculations that uses retrospective runs (given we have them). Calls make.historical.probs.plot() for each retrospective

Usage

plot_historical_probs_retro(
  model,
  hist_probs,
  type = "decline",
  xLim = c(2012, assess_yr),
  make.one.figure = TRUE,
  cols = c("lightgrey", "darkgreen", "lightgreen", "brown", "pink", "orange", "gold",
    "darkgrey", "violet", "black"),
  time.sleep = 0,
  omit.current = TRUE,
  select.retros = NULL,
  lwd.val.for.retros = 1,
  legend.text.model = "From current base model",
  ...
)

Arguments

model

Model with retrospectives

hist_probs

A data frame containing the data found in assessment-history-probs.csv

type

One of decline or bforty as needed for make.historical.probs.plot()

xLim

Range of x (years) axis

make.one.figure

Whether to plot everything on one figure or new figure for each retro.

cols

Vector colors to use

time.sleep

Seconds to pause between plots

omit.current

Omit current base model plot when doing individual plots (e.g. for panel plot don't need it, probably already shown it)

select.retros

Vector of retrospective runs to use, where 1:4 would be the earliest four retrospective runs (for not doing all plots to be able to spread them out over multiple pages)

lwd.val.for.retros

lwd for retro lines, default of 1 is for one figure

legend.text.model

text to describe model in the legend

...

Arguments to pass to make.historical.probs.plot()


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