draw.wd {wavethresh} | R Documentation

## Draw mother wavelet or scaling function associated with wd object.

### Description

This function draws the mother wavelet or scaling function associated with a `wd.object`.

### Usage

    draw.wd(wd, ...)

### Arguments

`wd` | The `wd` class object whose associated wavelet or scaling function you wish to draw.
`...` | 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.

### Details

This function extracts the filter component from the `wd` 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.

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

### RELEASE

Version 2 Copyright Guy Nason 1993

### See Also

`filter.select`, `wd.object`, `draw.default`.

### Examples

    #
    # Generate some test data
    #
    #test.data <- example.1()$y
    #ts.plot(test.data)
    #
    # Now do the discrete wavelet transform of the data using the Daubechies
    # least-asymmetric wavelet N=10 (the default arguments in
    # wd).
    #
    #tdwd <- wd(test.data)
    #
    # What happens if we try to draw this new tdwd object?
    #
    #draw(tdwd)
    #
    # We get a picture of the wavelet that did the transform
    #

[Package wavethresh version 4.0-2 Index]