Learn R Programming

RSEIS (version 4.2-4)

wlet.do: Return Wavelet transform

Description

Wavelet transform

Usage

wlet.do(why, dt, noctave = 6, nvoice = 20, w0=5,
flip = TRUE, ploty = TRUE, zscale = 1,
col = terrain.colors(100), STAMP = STAMP, units="", scaleloc=c(0.4,0.95))

Value

baha

list: wavelet transform image, noctave = number of octaves, nvoice = number of voices, w0= central freq, flip = logical, whether image is flipped (default=TRUE)

PE

plotting information list: why=y-axis, dt=time series sample, interval, zscale=(1,2,3) image scaling, col=color map, ygrid = logical(default=FALSE), STAMP = character string

Arguments

why

signal

dt

sample rate (s)

noctave

number of octaves, default=6

nvoice

number of voices, nvoice = 20

w0

central frequency for morlet wavelet, default=5

flip

logical, whether to flip the orientation

ploty

logical, whether to plot y

zscale

scale of the image

col

color palette

STAMP

cahracter stamp for identification

units

character, units to put on plot

scaleloc

2-vector, percentatge of bottom margin for the color scale

Author

Jonathan M. Lees<jonathan.lees.edu>

Details

This function uses the cwt (package:Rwave) code to calculate the continuous wavelet transform, but plots it differently. Morelet wavelet is used by default. The cwt produces an image, the modulus of the transform, which is passed on to wlet.do along with the number of octaves and the number of voices. Plotting parameters are passed to the function so that replotting can be accomplished (use plotwlet) without having to recalculate the transform.

Plotting parameters are passed on to the plotting function, plotwlet.

See Also

Rwave, cwt , plotwlet, contwlet , pwlet2freqs, wlet.drive

Examples

Run this code

data(CE1)

plot(CE1$x, CE1$y, type='l')

require(Rwave)

out <- wlet.do(CE1$y, CE1$dt, flip = FALSE, ploty = TRUE)



Run the code above in your browser using DataLab