plot_em_timeseries: Plot the mean of the year medians SSB for all Estimation...

View source: R/plot_em_timeseries.R

plot_em_timeseriesR Documentation

Plot the mean of the year medians SSB for all Estimation models

Description

Plot the mean of the year medians SSB for all Estimation models

Usage

plot_em_timeseries(
  ps,
  type = "ssb",
  ci = c(0.05, 0.95),
  ci_lines = TRUE,
  yr_lim = c(NA_real_, NA_real_),
  rev_scenarios = TRUE,
  legend_position = c(0.15, 0.92),
  free_y_scale = FALSE,
  ...
)

Arguments

ps

A plot setup object as output by setup_mse_plot_objects().

type

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

ci

A vector of length two of the lower and upper credible interval values.

ci_lines

If TRUE, use dashed lines for the CI envelope. If FALSE, use a shaded ribbon.

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.

rev_scenarios

If TRUE, reverse the order of the scenarios in the legend.

legend_position

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

free_y_scale

See the scales argument of ggplot2::facet_wrap()

...

Extra arguments to pass to color_facet_backgrounds()

Value

A ggplot2::ggplot() object


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