plot_stock_recruitment: Create a plot of the stock-recruitment relationship with...

plot_stock_recruitmentR Documentation

Create a plot of the stock-recruitment relationship with estimated medians and credible intervals by year overlaid. An expected distribution of absolute recruitment is also plotted

Description

Create a plot of the stock-recruitment relationship with estimated medians and credible intervals by year overlaid. An expected distribution of absolute recruitment is also plotted

Usage

plot_stock_recruitment(
  model,
  xlim = c(0, 1.4),
  ylim = c(0, 8),
  show_yr_text = c(1967, 1970, 1973, 1977, 1980, 1984, 1987, 1990, 1999, 2008, 2009:2024)
)

Arguments

model

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

xlim

A vector of two values. The x-axis minimum and maximum values

ylim

A vector of two values. The y-axis minimum and maximum values

show_yr_text

A vector of years to show labels for. If NULL, labels will be shown for all points

Value

A ggplot2::ggplot() object


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