Skip to contents

This function can be passed to the callback argument of project() to plot the biomasses of the species in real-time as the simulation runs.

Usage

biomass_callback(sim, t_idx, ...)

Arguments

sim

A MizerSim object.

t_idx

The current time index.

...

Other arguments passed to the callback (such as ylim, species, use_cutoff, etc.).

Examples

if (FALSE) { # \dontrun{
params <- NS_params
# Open an external graphics window to see the real-time plot in RStudio
x11()
sim <- project(params, callback = biomass_callback)
} # }