plot_selex_uncertainty: Create a plot of time-varying selectivity panels

View source: R/plot-selex-uncertainty.R

plot_selex_uncertaintyR Documentation

Create a plot of time-varying selectivity panels

Description

Create a plot of time-varying selectivity panels

Usage

plot_selex_uncertainty(
  model,
  yr_lim = c(1990, last_data_yr),
  ages = 1:8,
  n_col = 1,
  rev = FALSE,
  point_size = 1,
  point_fatten = 2,
  border_width = 2,
  border_color = "black",
  border_linetype = "solid",
  show_panel_borders = FALSE,
  label_loc = c(1, 0.75),
  label_font_size = 4,
  pad_top = TRUE,
  pad_bottom = TRUE
)

Arguments

model

A model list, as created by create_rds_file()

yr_lim

A vector of two values representing the minimum and maximum years to plot panels for

ages

A vector of ages to include

n_col

The number of columns to hold panels

rev

Logical. If TRUE, reverse the order of the years

point_size

The point size

point_fatten

The fatness of the point. Needed when using ggplot2::geom_errorbar()

border_width

Thickness of the border line. If NULL no border will be shown

border_color

Color of the column borders

border_linetype

Line type of the column borders

show_panel_borders

Logical. If TRUE, show borders around the panels

label_loc

A vector of two (x, y) describing the label location inside the panels

label_font_size

The labels font size

pad_top

Add blank cells across the top as "padding"

pad_bottom

Add blank cells across the bottom as "padding"

Details

The panels show the medians and the credible interval as calculated in load_extra_mcmc().

Value

A ggplot2::ggplot() object


pacific-hake/hake-assessment documentation built on Jan. 14, 2025, 9:12 p.m.