Skip to contents

Plot parent-offspring-pair (POP) observations and fitted values by juvenile cohort, adult capture age, and adult capture year.

Usage

plot_pops(
  fit = NULL,
  object = NULL,
  return_list = FALSE,
  verbose = FALSE,
  observed_color = "#D55E00",
  predicted_color = "#0072B2",
  data = NULL
)

Arguments

fit

An sbt_fit object. This diagnostic uses its fitted point estimate; posterior intervals are not materialized.

object

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

return_list

Logical. If TRUE, return individual POP panels as a named list. If FALSE, return the combined POP panel.

verbose

Logical. If TRUE, print cohort progress messages.

observed_color

Color used for observed match counts.

predicted_color

Color used for predicted match counts and intervals.

data

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

Value

If return_list = FALSE, a patchwork object displaying POP observations and fitted values. If return_list = TRUE, a named list of POP fit plots.

Details

Displayed count intervals are conditional plug-in approximations and do not propagate posterior parameter uncertainty.

Examples

fit <- sbt_example_fit()
#> Warning: Dependency versions differ: RTMBdist, TMB
#> Warning: Dependency versions differ: RTMBdist, TMB
plot_pops(fit)