draw.wd              package:wavethresh              R Documentation

_D_r_a_w _m_o_t_h_e_r _w_a_v_e_l_e_t _o_r _s_c_a_l_i_n_g _f_u_n_c_t_i_o_n _a_s_s_o_c_i_a_t_e_d _w_i_t_h _w_d _o_b_j_e_c_t.

_D_e_s_c_r_i_p_t_i_o_n:

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

_U_s_a_g_e:

     draw.wd(wd, ...)

_A_r_g_u_m_e_n_t_s:

      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.

_D_e_t_a_i_l_s:

     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.

_V_a_l_u_e:

     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.

_R_E_L_E_A_S_E:

     Version 2 Copyright Guy Nason 1993

_S_e_e _A_l_s_o:

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

_E_x_a_m_p_l_e_s:

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

