Learn R Programming

wv (version 0.1.2)

plot.modwt: Plot Maximum Overlap Discrete Wavelet Transform

Description

Plots results of the modwt list in which additional parameters can be specified

Usage

# S3 method for modwt
plot(x, index = NULL, couleur = NULL, ...)

Arguments

x

A modwt object.

index

A vector containing the indices to scales to be included in the graph. By default index = 1:(min(c(J,4))), where J denotes the number of scales in y.

couleur

A vector of colors of the same size as index used for the different scales depicted in the graph. If couleur contains a single value the the same color will be used for all scales.

...

additional arguments affecting the plot produced.

Author

Justin Lee and Stephane Guerrier

Examples

Run this code
# Simulate a Gaussian white noise
n = 10^3
Xt = rnorm(n)

# MODWT
Yt = modwt(Xt)

# Graph examples
plot(Yt)
plot(Yt, index = c(1,4,5,6,8,2))
plot(Yt, index = c(1,4,5,6), couleur = "blue")
plot(Yt, index = c(1,4,5,6), couleur = rep(c("blue","yellow"),2))

Run the code above in your browser using DataLab