ilagplot {IDPmisc}R Documentation

Image Lag Plot Matrix for Large Time Series

Description

Produces an image lag plot matrix of large timeseries where the colors encode the density of the points in the lag plots.

Usage

ilagplot(x, set.lags = 1,
         pixs = 1, zmax = NULL, colramp = IDPcolorRamp,
         mfrow = NULL, border = FALSE,
         main = NULL, cex.main = 2 * par("cex.main"), ...)

Arguments

x ts object or ordinary vector
set.lags vector of lags to be displayed
pixs Pixel size in mm
zmax Maximum counts per Pixel to be plotted. When NULL each lag plot has its individual scale. If a number >= maximum number of counts per pixel is supplied, the scale will be identical for all lag plots. The maximum of the number per pixel is delivered by the return vallue.
colramp Color ramp to encode the density of the points within a pixel
mfrow See Argument mfrow in par
border Shall border be drawn between the colors in the legend: TRUE / FALSE
main Title
cex.main Character size of title
... Additional arguments to plot.default

Details

Code is based on R function lag.plot V1.7.

Value

Maximum number of counts per Pixel found.

Note

When you get the error message "Zmax too small! Densiest aereas are out of range!" you must run the function again without specifying zmax. The value returned gives you the minimum value allowed for zmax.

Author(s)

Andreas Ruckstuhl, refined by Rene Locher

See Also

ipairs, ixyplot, Image

Examples

zmax <- ilagplot(sunspot.month, pixs=2, set.lags=1:9,
                 mfrow=c(3,3),border=FALSE,main="Test")
ilagplot(sunspot.month, pixs=2, zmax=zmax, set.lags=1:6,
         mfrow=c(2,3), border=FALSE)

x <-  rnorm(100000)
ilagplot(x+c(x[-1],0)+c(x[-(1:2)],0,0)+c(x[-(1:3)],0,0,0),
         set.lags=1:4)

[Package IDPmisc version 0.3.4 Index]