animate: Make an animated gif of landscape over time

Description Usage Arguments Value Examples

View source: R/animate.R

Description

This function creates an animated gif with every landscape year configuration

Usage

1
2
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

1
2
3
4
## Not run: 
animate(lands, stepsBy = 1, fps = 5, gifName = 'myGif', rangeLimitOccup = 0.75)

## End(Not run)

willvieira/STManaged documentation built on Sept. 4, 2020, 2:26 p.m.