WaveThresh
Help
draw.wst
Draw mother wavelet or scaling function associated with
wst object.
DESCRIPTION
This function draws the mother wavelet or scaling function associated with
a wst object.
USAGE
draw.wst(wst, ...)
REQUIRED ARGUMENTS
- wst
- The wst class object whose associated wavelet
or scaling function you wish to draw.
OPTIONAL ARGUMENTS
- ...
- Additional arguments to pass to the draw.default
function which does the drawing. In particular, arguments can be set to
choose between drawing the mother wavelet and scaling function, to
set the resolution of the plot, to choose between drawing one and
two dimensional pictures.
VALUE
If the plot.it
argument is set to TRUE
then
nothing is returned. Otherwise, as with draw.default,
the coordinates of what would have been plotted are returned.
SIDE EFFECTS
If the plot.it
argument is TRUE
(which it is
by default) a plot of the mother wavelet or scaling function is
plotted on the active graphics device.
DETAILS
This function extracts the filter
component from the
wst object (which is constructed using
the filter.select function) to decide which
wavelet to draw. Once decided the draw.default
function is used to actually do the drawing.
RELEASE
Version 3.6 Copyright Guy Nason 1995
SEE ALSO
filter.select,
wst object,
draw.default.
EXAMPLES
#
# Generate some test data
#
test.data <- example.1()$y
tsplot(test.data)
#
# Now do the packet-ordered non-decimated DWT
# of the data using the Daubechies least-asymmetric wavelet N=10
# (the default arguments in wst).
#
tdwst <- wst(test.data)
#
# What happens if we try to draw this new tdwst object?
#
draw(tdwst)
#
# We get a picture of the wavelet that did the transform
#