Learn R Programming

IDPmisc (version 0.3.1)

ilagplot: 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 d
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

Value

  • Maximum number of counts per Pixel found.

concept

  • large dataset
  • huge dataset

Details

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

See Also

ipairs, ixyplot, Image

Examples

Run this code
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)

Run the code above in your browser using DataLab