plot_worms_grid: Make a Kobe "worm" timeseries plot with uncertainty

View source: R/figures-worm.R

plot_worms_gridR Documentation

Make a Kobe "worm" timeseries plot with uncertainty

Description

Make a Kobe "worm" timeseries plot with uncertainty

Usage

plot_worms_grid(
  object_list,
  prob = 0.5,
  include_historical = TRUE,
  french = isTRUE(getOption("french"))
)

Arguments

object_list

A named list of MSE objects from DLMtool. Names become scenario names.

prob

Tail probability for the quantiles. E.g., 0.5 refers to an interquartile range.

include_historical

Logical: include the historical time?

french

French?

Details

Note that if you receive an error such as ⁠Error: vector memory exhausted (limit reached?)⁠, consider starting a fresh R session of removing any large objects from memory. Also, try adding ⁠R_MAX_VSIZE=64Gb⁠ (or pick some reasonable large value) to your .Renviron file. usethis::edit_r_environ()

Value

A ggplot object

Examples

x <- list()
x[[1]] <- mse_example
x[[2]] <- mse_example
names(x) <- c("Scenario 1", "Scenario 2")
plot_worms_grid(x)

pbs-assess/ggmse documentation built on Nov. 21, 2023, 8:06 p.m.