This function creates an animated gif with every landscape year configuration

animate(lands, stepsBy = 1, steps = NULL, fps = 5, gifName = NULL,
  rangeLimitOccup = 0.75, width = NULL, height = NULL)

Arguments

lands

the object output of the run_model function

stepsBy

integer number, increment value from 1 to length of steps

steps

vector, specific steps to be animated

fps

frames per second

gifName

string with name of the file output

rangeLimitOccup

numeric between 0 and 1 to define the minimum row occupancy of a state in the landscape. It will add a line in the plot for the boreal trailing edge and the temperate leading edge. See run_model for more details

width

numeric, width of gif image

height

numeric, height of gif image

Value

an animated gif file

Examples

if (FALSE) { animate(lands, stepsBy = 1, fps = 5, gifName = 'myGif', rangeLimitOccup = 0.75) }