Skip to contents

Plot raw or one-step-ahead residuals for the CPUE likelihood.

Usage

plot_cpue_residuals(fit = NULL, obj = NULL, data = NULL)

Arguments

fit

An sbt_fit object.

obj

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

data

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

Value

A ggplot2 object. The residual data and plotted residual data are attached as "residual_data" and "plot_data" attributes.