Animate the simulated population dynamics
animate_model(model, file, steps, gif = NULL, width = 800, height = 560)
If gif = NULL
, return gganimate animation object. Otherwise a GIF
file is saved and no value is returned.
Compiled slendr_model
model object
Path to the table of saved individual locations
How many frames should the animation have?
Path to an output GIF file (animation object returned by default)
Dimensions of the animation in pixels