animation: Space-time data animation

View source: R/animation.R

animationR Documentation

Space-time data animation

Description

Provide an animation of spatio-temporal point patterns.

Usage

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)

Arguments

xyt

Data-matrix containing the (x,y,t)-coordinates.

s.region

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].

t.region

Interval containing all data-times xyt[,3]. If missing, t.region is defined by the range of xyt[,3].

runtime

Approximate running time of animation, in seconds, but it is longer than expected. Can also be NULL.

incident

Colour in which incident point xyt[i,1:2] is plotted at time xyt[i,3].

prevalent

Colour to which prevalent point xyt[i,1:2] fades at time xyt[i+1,3].

pch

Plotting symbol used for each point.

cex

Magnification of plotting symbol relative to standard size.

plot.s.region

If TRUE, plot s.region as polygon.

scales

If TRUE, plot X and Y axes with scales.

border.frac

Extent of border of plotting region surounding s.region, as fraction of ranges of X and Y.

add

If TRUE, add the animation to an existing plot.

Value

None

Author(s)

Peter J Diggle, Edith Gabriel <edith.gabriel@inrae.fr>.


stpp-GitHub-community/stpp documentation built on Feb. 3, 2024, 9:49 p.m.