animate_model | R Documentation |
Animate the simulated population dynamics
animate_model(model, file, steps, gif = NULL, width = 800, height = 560)
model |
Compiled |
file |
Path to the table of saved individual locations |
steps |
How many frames should the animation have? |
gif |
Path to an output GIF file (animation object returned by default) |
width , height |
Dimensions of the animation in pixels |
If gif = NULL
, return gganimate animation object. Otherwise a GIF
file is saved and no value is returned.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.