plot.dwt: Plot Discrete Wavelet Transform

View source: R/dwt.R

plot.dwtR Documentation

Plot Discrete Wavelet Transform

Description

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

Usage

## S3 method for class 'dwt'
plot(x, index = NULL, couleur = NULL, ...)

Arguments

x

A dwt 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)

# dwt
Yt = dwt(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.

Related to plot.dwt in wv...