Animate the simulated population dynamics

animate(model, steps, gif = NULL, width = 800, height = 560)

Arguments

model

Compiled slendr_model model object

steps

How many frames should the animation have?

gif

Path to an output GIF file (animation object returned by default)

Value

If gif = NULL, return gganimate animation object. Otherwise a GIF file is saved and no value is returned.