Animate a SpatRaster object as a gif.
Arguments
- data
a single SpatRast object
- AOI
optional AOI sf or SpatVect object to overlay on gif
- outfile
path to write gif file, must have .gif extenstion
- colors
colors to plot with
See also
Other viz:
animation_vector()
,
animation()