Learn R Programming

SlotLim (version 0.0.2)

catch_advice: catch_advice

Description

Calculates the advised catch using the SlotLim framework and (optionally) returns a plot of the percentage change relative to Cy across a grid of (TBA, SAM) values, with the output overlaid.

Usage

catch_advice(
  Cy = NULL,
  TBA = NULL,
  SAM = NULL,
  T1 = NULL,
  T2 = NULL,
  plot = FALSE
)

Value

  • Ay: Catch advice (same units as Cy).

  • Ay_percent: Percent change of advice relative to Cy.

  • plot: (only when plot = TRUE) a ggplot2 object visualizing percent change across \(TBA \times SAM\).

Arguments

Cy

Numeric (length 1) > 0. Most recent annual catch, or multi-year average. If landing size restrictions have changed, use catch_adjust to adjust the starting catch value accordingly.

TBA

Numeric (length 1) > 0. Targeted Biomass Adjustment (see TBA()).

SAM

Numeric (length 1) > 0. Size Adherence Multiplier (see SAM()).

T1

Optional numeric (length 1) in (0,1). Maximum allowed proportional decrease. If NULL, no lower cap.

T2

Optional numeric (length 1) in (0,1). Maximum allowed proportional increase. If NULL, no upper cap.

plot

Logical. If TRUE, return a ggplot2 heatmap (default FALSE).

See Also

TBA, SAM

Examples

Run this code
Cy <- 1000; TBA <- 1.1; SAM <- 0.9
catch_advice(Cy, TBA, SAM)  # compute only

# \donttest{
catch_advice(Cy, TBA, SAM, plot = TRUE)
catch_advice(Cy, TBA, SAM, T1 = 0.2, T2 = 0.2, plot = TRUE)
# }

Run the code above in your browser using DataLab