plot.modwt: Plot Maximum Overlap Discrete Wavelet Transform

View source: R/modwt.R

plot.modwtR Documentation

Plot Maximum Overlap Discrete Wavelet Transform

Description

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

Usage

## 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

# 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))

wv documentation built on Aug. 31, 2023, 9:08 a.m.