Skip to contents

Plot selectivity by fishery, year, and age.

Usage

plot_selectivity(
  data,
  object,
  posterior = NULL,
  probs = c(0.025, 0.975),
  years = 2013:2022,
  fisheries = c("LL1", "LL2", "LL3", "LL4", "Indonesian", "Australian", "CPUE"),
  ...
)

Arguments

data

A list containing the data that was passed to MakeADFun.

object

A list specifying the AD object created using MakeADFun.

posterior

An rstan object created using the tmbstan function. Default is NULL.

probs

A numeric vector of probabilities with values in [0, 1] for plotting quantiles of the posterior distribution.

years

A numeric vector specifying the years to display on the plot.

fisheries

A character vector specifying the fisheries to display on the plot.

...

Additional options passed on to geom_density_ridges.

Value

A ggplot2 object displaying selectivity patterns.