draw.mwd {wavethresh} | R Documentation

## Draws a wavelet or scaling function used to compute an 'mwd' object

### Description

Draws picture of one wavelet or scaling function associated with the multiple wavelet decomposition object. `mwd.object`.

### Usage

    draw.mwd(mwd, phi = 0, psi = 0, return.funct = FALSE, ...)

### Arguments

`mwd` | The `mwd` class object whose associated wavelet or scaling function you wish to draw.
`phi` | description not yet available
`psi` | If `phi` is non-zero then the `phi'-th scaling function of the wavelet family used for mwd will be plotted. `phi` must be between 0 and `mwd$filter$nphi`.
`return.funct` | If true then the vector used as phi/psi in the plot command is returned.
`...` | Additional arguments to pass to the `plot` function

### Details

It is usual to specify just one of phi and psi. IF neither phi nor psi are specified then phi=1 is the default. An error is generated if both phi=0 and psi=0 or if both are nonzero.

### Value

If the `return.funct` argument is set to `TRUE` then the function values in the plot are returned otherwise `NULL` is returned.

### RELEASE

Version 3.9.6 (Although Copyright Tim Downie 1995-6).

### See Also

`accessC.mwd`, `accessD.mwd`, `mfirst.last`, `mfilter.select`, `mwd`, `mwd.object`, `mwr`, `plot.mwd`, `print.mwd`, `putC.mwd`, `putD.mwd`, `summary.mwd`, `threshold.mwd`, `wd`, `wr.mwd`.

### Examples

    #
    # Do a multiple wavelet decomposition on vector: ynoise
    #
    #ynoise <- rnorm(512, sd = 0.1)
    #ymwd <- mwd(ynoise,filter.type="Geronimo")
    #
    # Draw a picture of the second Geronimo wavelet.
    #
    #draw(ymwd,psi=2)
    #
    #

[Package wavethresh version 4.0-2 Index]