animation: Space-time data animation

Description Usage Arguments Value Author(s)

View source: R/animation.r

Description

Provide an animation of spatio-temporal point patterns.

Usage

1
2
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@univ-avignon.fr>.


stpp documentation built on May 2, 2019, 4:50 p.m.