Skip to contents

Plot observed and predicted aerial survey index values with lognormal 95% intervals from the input aerial covariance matrix and fitted observation error.

Usage

plot_aerial(
  fit = NULL,
  object = NULL,
  observed_color = "#D55E00",
  predicted_color = "#0072B2",
  data = NULL,
  posterior = NULL,
  probs = c(0.025, 0.975)
)

Arguments

fit

An sbt_fit object. This diagnostic uses its fitted point estimate.

object

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

observed_color

Color used for observed index values and intervals.

predicted_color

Color used for predicted index values.

data

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

posterior

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

probs

Lower and upper posterior interval probabilities.

Value

A ggplot2 object displaying observed and predicted aerial survey index values by year.