plot.modwt: Plot Maximum Overlap Discrete Wavelet Transform

Description Usage Arguments Author(s) Examples

View source: R/modwt.R

Description

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

Usage

1
2
## S3 method for class '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(s)

Justin Lee and Stephane Guerrier

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
# 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))

Example output



wv documentation built on Jan. 17, 2020, 1:07 a.m.