Animate the simulated population dynamics
animate( model, output_dir = model$path, output_prefix = "output", steps, gif = NULL, width = 800, height = 560 )
A directory where to look for simulation outputs (by default, all output files are in a model directory)
A common prefix of output files (by default, all files
will share a prefix
How many frames should the animation have?
Path to an output GIF file (animation object returned by default)
gif = NULL, return gganimate animation object. Otherwise a GIF
file is saved and no value is returned.