Skip to contents

Plot aerial survey fit.

Usage

plot_aerial_survey(
  data,
  object,
  posterior = NULL,
  probs = c(0.025, 0.975),
  nsim = 10
)

Arguments

data

A list containing the data that was passed to MakeADFun.

object

A list specifying the AD object created using MakeADFun.

posterior

An rstan object created using the tmbstan function for Bayesian inference. Default is NULL.

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).

nsim

A numeric value specifying the number of simulations to plot. Default is 10.

Value

A ggplot2 object displaying observed aerial survey indices with simulated and predicted values by year.