Skip to contents

Visualize fitted growth increments against observed tag-recapture data.

Usage

plot_growth_increment(
  data,
  parameters,
  obj,
  tau = 1,
  biomass = 1,
  midpoint = NULL
)

Arguments

data

a list containing model data including tag-recapture observations and growth settings.

parameters

a list of model parameter values used if obj does not contain estimated parameters.

obj

a fitted TMB model object from which parameter estimates are extracted.

tau

the time at liberty (years); defaults to 1 year.

biomass

the biomass value used for density-dependent growth calculations; defaults to 1.

midpoint

an optional numeric vector of length bin midpoints (mm); uses data$midpoint_l if NULL.

Value

a ggplot object.