plot.dwt: Plot Discrete Wavelet Transform

Description Usage Arguments Author(s) Examples

View source: R/dwt.R

Description

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

Usage

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

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

Example output

Warning message:
In dwt(Xt) :
  The data has been truncated so that it is divisible by `nlevels` (e.g. 2^*)

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

Related to plot.dwt in wv...