Animate the simulated population dynamics

animate(model, locations = NULL, nframes = 200, gif = NULL)

Arguments

model

Compiled spannr_model model object

locations

Table with individual locations

nframes

Number of frames of the animation

gif

Path to an output GIF (animation object returned by default) #' @param nframes Number of frames of the animation

Value

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