Callback function for plotting biomass in real-time
Source:R/biomass_callback.R
biomass_callback.RdThis function can be passed to the callback argument of project() to
plot the biomasses of the species in real-time as the simulation runs.
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)
} # }