Skip to contents

Plot aerial survey residuals

Usage

plot_aerial_residuals(
  fit = NULL,
  obj = NULL,
  method = "oneStepGeneric",
  data = NULL,
  ...
)

Arguments

fit

An sbt_fit object.

obj

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

method

Method passed to RTMB::oneStepPredict().

data

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

...

Additional arguments passed to RTMB::oneStepPredict().

Value

A ggplot2 object. The residual data and diagnostic summary are attached as "residual_data" and "residual_summary" attributes.