Skip to contents

Plot observed and expected conventional-tag recaptures after pooling tagger groups. Panels retain the release cohort and age structure used by the assessment model, while showing the corresponding release year explicitly.

Usage

plot_tags_fits_pooled(
  fit = NULL,
  object = NULL,
  data = NULL,
  posterior = NULL,
  probs = c(0.025, 0.975),
  observed_color = "#D55E00",
  predicted_color = "#0072B2",
  ncol = 3L,
  ...
)

Arguments

fit

An sbt_fit object. Its stored MCMC is used by default.

object

Legacy RTMB objective used only with a legacy data-list input.

data

Legacy named alias for a model data list; supply object as well.

posterior

Use NULL to plot the fit's required embedded posterior intervals, or FALSE for point estimates only. External posterior objects are not accepted.

probs

A numeric vector of length 2 with probabilities in [0,1] for plotting quantiles of the posterior distribution. Default is c(0.025, 0.975).

observed_color

Color used for observed recapture bars.

predicted_color

Color used for the expected recapture line and points.

ncol

Number of facet columns.

...

Additional parameters passed to facet_wrap.

Value

A ggplot2 object displaying pooled observed and expected conventional-tag recaptures by recapture age.