Provide an animation of spatio-temporal point patterns.
animation(xyt, s.region, t.region, runtime=1, incident="red",
prevalent="pink3", pch=19, cex=0.5, plot.s.region=TRUE,
scales=TRUE, border.frac=0.05, add=FALSE)
None
Data-matrix containing the \((x,y,t)\)-coordinates.
Two-column matrix specifying polygonal region containing
all data-locations xyt[,1:2]
.
If missing, s.region
is the bounding box of xyt[,1:2]
.
Interval containing all data-times xyt[,3]
.
If missing, t.region
is defined by the range of xyt[,3]
.
Approximate running time of animation, in seconds,
but it is longer than expected. Can also be NULL
.
Colour in which incident point xyt[i,1:2]
is
plotted at time xyt[i,3]
.
Colour to which prevalent point xyt[i,1:2]
fades
at time xyt[i+1,3]
.
Plotting symbol used for each point.
Magnification of plotting symbol relative to standard size.
If TRUE
, plot s.region
as polygon.
If TRUE
, plot X and Y axes with scales.
Extent of border of plotting region surounding
s.region
, as fraction of ranges of X and Y.
If TRUE
, add the animation to an existing plot.
Peter J Diggle, Edith Gabriel <edith.gabriel@inrae.fr>.