plot_timeseries_runs: Plot individual run output against each other as a time...

View source: R/plot_timeseries_runs.R

plot_timeseries_runsR Documentation

Plot individual run output against each other as a time series

Description

Plot individual run output against each other as a time series

Usage

plot_timeseries_runs(
  ps,
  type = "ssb",
  scen = 1,
  yr_lim = c(NA_real_, NA_real_),
  ylim = c(NA_real_, NA_real_),
  legend_position = c(0.26, 0.85),
  line_width = 1,
  line_type = "solid"
)

Arguments

ps

A plot setup object as output by setup_mse_plot_objects().

type

One of 'ssb', 'ssb_ssb0', catch', 'aas', 'aac','aap'

scen

The scenario number to use. This is an integer representing the names given by names(ps$sim_data)

yr_lim

A vector of 2 for minimum and maximum yrs to show on the plot. If either are NA, the limits of the data are used.

ylim

A vector of 2 for limits of the y-axis. If either are NA, the limits of the data are used.

legend_position

A vector of two - X and Y position for the legend. See ggplot2::theme()

line_width

Width of the lines. See ggplot2::geom_line()

line_type

Type of the lines. See ggplot2::geom_line()

Value

A ggplot2::ggplot() object


pacific-hake/pacifichakemse documentation built on June 11, 2024, 4:07 a.m.