Learn R Programming

wmtsa (version 2.0-3)

wavStackPlot.default: Plot wavelet transform crystals

Description

Forms a stack plot of wavelet transform crystals.

Usage

# S3 method for default
wavStackPlot(x, x.axis=TRUE, y.axis=TRUE, type="l", plot=TRUE,
    bars=FALSE, vgap=.05, grid=FALSE, times=time(x[[1]]),
    grid.lty="dashed", same.scale=NULL,
    zerocenter=FALSE, zeroline=FALSE, col=rep(1,n),
    complex.math="mod", cex.main=0.7, cex.axis=0.7, ...)

Arguments

x

a named list of wavelet transform crystals.

...

additional arguments sent directly to various internal plot functions.

bars

a logical value. If TRUE, a vertical bars are produced. Default: FALSE.

cex.axis

axis label character expansion factor ala par function. Default: 0.7.

cex.main

main title character expansion factor ala par function. Default: 0.7.

col

color indices for each crystal ala par function. Default: rep(1,n).

complex.math

math function to perform on each crystal prior to display. Default: "mod".

grid

a logical value. If TRUE, grid lines are produced. Default: FALSE.

grid.lty

grid line type ala par function. Default: "dashed".

plot

a logical value. If TRUE, a plot is produced. Default: TRUE.

same.scale

a logical value. If TRUE, the crystal coefficients are scaled. Default: TRUE.

times

a numeric vector of x-axis times to be displayed. Default: time(x[[1]]).

type

type of plot ala par function. Default: "l".

vgap

vertical gap factor used to separate stacked crystals. Default: 0.05.

x.axis

a logical value defining the visibility of the x-axis. Default: TRUE.

y.axis

a logical value defining the visibility of the y-axis. Default: TRUE.

zerocenter

a logical value. If TRUE, crystals are centered about zero. Default: FALSE.

zeroline

a logical value. If TRUE, a y=0 line is drawn for reference. Default: FALSE.

Details

Used by various wavelet functions to plot wavelet transform crystals. In general, the user should not call this function directly and, rather, shoudl rely on the plot methods of wavTransform objects.

See Also

wavTransform.

Examples

Run this code
# NOT RUN {
wavStackPlot.default(wavMODWT(sunspots)$data)
# }

Run the code above in your browser using DataLab