plot_fore_age_comps: Create a two-panel plot showing the forecasted age...

View source: R/plot-fore-age-comps.R

plot_fore_age_compsR Documentation

Create a two-panel plot showing the forecasted age compositions by numbers and weight for the first forecast year (endyr + 1)

Description

Create a two-panel plot showing the forecasted age compositions by numbers and weight for the first forecast year (endyr + 1)

Usage

plot_fore_age_comps(
  model,
  x_lim = c(1, 15),
  x_breaks = seq(x_lim[1], x_lim[2], 2),
  y_lim = c(0, 0.55),
  whisker_width = 0.5,
  point_size = 2,
  glow_size = 2.5
)

Arguments

model

A model object, created by create_rds_file()

x_lim

A vector of 2 representing the minimum and maximum x-axis values to plot

x_breaks

A vector of values to show on the x-axis

y_lim

A vector of 2 representing the minimum and maximum y-axis values to plot

whisker_width

The width of the top and bottom crossbars (whiskers) on the error bars

point_size

The size of the median points

glow_size

The size of the white glow behind the points (must be larger than point_size to be seen)

probs

A vector of three quantiles for the lower CI, median, and upper CI. The second value must be 0.5

Value

A cowplot::plot_grid() object


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