plot_selex_mountains: Create a plot of median selectivity as a set of overlapping...

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

plot_selex_mountainsR Documentation

Create a plot of median selectivity as a set of overlapping "mountains" which are shaded top-down for visual appeal

Description

Create a plot of median selectivity as a set of overlapping "mountains" which are shaded top-down for visual appeal

Usage

plot_selex_mountains(
  model,
  yrs = NULL,
  ages = 1:8,
  scale = 1,
  fill_num_colors = 20,
  fill_col_upper = "darkblue",
  fill_col_lower = "lightblue"
)

Arguments

model

The model output from Stock Synthesis as loaded by create_rds_file().

yrs

A vector of years to include in the plot. If NULL, all years found in the data will be included

ages

A vector of ages to include in the plot

scale

A scaling factor to increase or decrease the height of the selectivity plots

fill_num_colors

The number of colors for the gradient of colors between fill_col_upper and fill_col_lower

fill_col_upper

The top color for the gradient color scheme

fill_col_lower

The bottom color for the gradient color scheme

Value

A ggplot2::ggplot() object


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