plot_natural_mortality: Plot natural mortality mcmc median and credibility interval

View source: R/figures.R

plot_natural_mortalityR Documentation

Plot natural mortality mcmc median and credibility interval

Description

Plot natural mortality mcmc median and credibility interval

Usage

plot_natural_mortality(
  model,
  line_size = 0.75,
  ribbon_alpha = 0.5,
  prod_yrs = 1990:1999,
  show_prod_yrs = TRUE,
  xlim = NA,
  y_max = NA,
  show_x_axis = TRUE,
  show_y_axis = TRUE,
  x_axis_label_size = 8,
  x_axis_tick_label_size = 8,
  y_axis_label_size = 8,
  y_axis_tick_label_size = 8,
  x_axis_label_newline_length = 50,
  y_axis_label_newline_length = 40,
  x_axis_position = "bottom",
  y_axis_position = "left",
  annot = "b",
  translate = FALSE
)

Arguments

model

an iscam model

line_size

thickness of the median line

ribbon_alpha

transparency of the credibility interval ribbon

prod_yrs

Numeric vector. Productive period to calculate the USR. Default 1990:1999.

show_prod_yrs

Logical. Show vertical band for productive period. Default TRUE.

xlim

x-limits for the plot. Implemented with [ggplot2::coord_cartesian()]

show_x_axis

see [modify_axes_labels()]

show_y_axis

see [modify_axes_labels()]

x_axis_label_size

see [modify_axes_labels()]

x_axis_tick_label_size

see [modify_axes_labels()]

y_axis_label_size

see [modify_axes_labels()]

y_axis_tick_label_size

see [modify_axes_labels()]

x_axis_label_newline_length

see [newline_format()]

y_axis_label_newline_length

see [newline_format()]

annot

a character to place in parentheses in the top left of the plot. If NA, nothing will appear

translate

Logical. If TRUE, translate to french

Value

A ggplot object


pbs-assess/herringutils documentation built on Jan. 10, 2025, 8:43 a.m.