plot_rickers: Plot sample Ricker curves for each stock

View source: R/plot_rickers.R

plot_rickersR Documentation

Plot sample Ricker curves for each stock

Description

Make a plot of Ricker curves for each stock. Can be useful for visualizing how the simulation parameters are impacting the Ricker curves and how these vary with temperature across stocks. The colour of the lines corresponds to the relative thermal tolerance of that stock. The shaded region shows the range of spawners observed throughout the simulations.

Usage

plot_rickers(
  x,
  pal = rep("black", x$n_pop),
  n_samples = 40,
  add_y_axes_pops = c(1, 6),
  add_x_axes_pops = c(6:10),
  burn = 1:30,
  add_shading = TRUE,
  ...
)

Arguments

x

Output list from meta_sim.

pal

Colours for stocks.

n_samples

Number of sample lines to draw from the a parameters.

add_y_axes_pops

Panels to add y axes on.

add_x_axes_pops

Panels to add x axes on.

burn

Number of initial years to throw out as burn in.

add_shading

Logical: add the light grey shading for the range of observed spawner abundance?

...

Anything else to pass to plot.default.

Value

A plot

Examples

arma_env_params <- list(mean_value = 16, ar = 0.1, sigma_env = 2, ma = 0)
base1 <- meta_sim(n_pop = 10, env_params = arma_env_params, env_type =
  "arma", assess_freq = 5)
plot_rickers(base1)

seananderson/metafolio documentation built on Feb. 13, 2024, 5:47 a.m.