animate: Animate layers of a Raster* object

Description Usage Arguments Value See Also Examples

Description

Animate (sequentially plot) the layers of a RasterStack or RasterBrick* object to create a movie

Usage

1
2
## S4 method for signature 'RasterStackBrick'
animate(x, pause=0.25, main, zlim, maxpixels=50000, n=10, ...)

Arguments

x

Raster* object

pause

numeric. How long should be the pause be between layers?

main

title for each layer. If not supplied the z-value is used if available. Otherwise the names are used.

zlim

numeric vector of lenght 2. Range of values to plot

maxpixels

integer > 0. Maximum number of cells to use for the plot. If maxpixels < ncell(x), sampleRegular is used before plotting

n

integer > 0. Number of loops

...

Additional arguments passed to plot

Value

None

See Also

plot, spplot, plotRGB

Examples

1
2
b <- brick(system.file("external/rlogo.grd", package="raster"))
animate(b, n=1)

raster documentation built on Nov. 17, 2017, 5:51 a.m.