plot_management_catch_vs_tac: Make a time series plot of the management-chosen TAC,...

View source: R/plot-management-catch-vs-tac.R

plot_management_catch_vs_tacR Documentation

Make a time series plot of the management-chosen TAC, assessment estimated TAC, and realized catch

Description

Make a time series plot of the management-chosen TAC, assessment estimated TAC, and realized catch

Usage

plot_management_catch_vs_tac(
  d,
  curr_assess_biomass = NULL,
  line_type = "solid",
  line_width = 1,
  line_alpha = 0.5,
  leg_pos = c(0.65, 0.83),
  leg_ncol = 1,
  leg_font_size = 12,
  point_size = 3,
  ret_tbl = FALSE,
  font_size = 10,
  right_cols_cm = 1.8,
  ...
)

Arguments

d

The data as read in using readr::read_csv() from the file "catch-targets.csv"

curr_assess_biomass

Current year's assessment-estimated biomass (or any value). If NULL it will not be shown

line_type

Which linetype to use for connecting the values with vertical lines

line_width

Width of the connecting lines

line_alpha

Which alpha level (0-1) to use for connecting the values with vertical lines

leg_pos

The legend position as x-y coordinates (vector of 2)

leg_ncol

The number of columns to split the legend into

leg_font_size

The legend font size

point_size

The point size

ret_tbl

Logical. If TRUE, return a kableExtra::kbl() containing the outputs instead of the ggplot2::ggplot() object

font_size

The table data and header font size in points

right_cols_cm

The number of centimeters wide to make all of the rightmost columns (all the value columns)

Value

A ggplot2::ggplot() object


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