plotED                  package:edd                  R Documentation

_v_i_s_u_a_l_i_z_e _a_n _e_d_d_D_i_s_t _o_b_j_e_c_t

_D_e_s_c_r_i_p_t_i_o_n:

     plots an eddDist model; can superimpose density sketch from
     transformed data

_U_s_a_g_e:

     plotED(x, y, data=NULL, is.centered=FALSE, ...)

_A_r_g_u_m_e_n_t_s:

       x: eddDist object

       y: not used

    data: optional vector of data to be superimposed in the form of a
          kernel density estimate

is.centered: is.centered: logical indicating that the data vector has
          zero median and unit mad

     ...: ...: options passed to curve

_A_u_t_h_o_r(_s):

     Vince Carey <stvjc@channing.harvard.edu>

_E_x_a_m_p_l_e_s:

     #
     # show the first 8 supplied reference dists
     if (interactive()){
     omf <- par()$mfrow
     oas <- par()$ask
     on.exit(par(mfrow=omf,ask=oas))
     par(mfrow=c(4,2))
     par(ask=TRUE)
     }
     set.seed(1234)
     for (i in 1:8) plotED(eddDistList[[i]])
     # illustrate the superposition
     if (interactive()) par(mfrow=c(1,1))
     x <- rnorm(30,3,4)
     plotED(N01,data=x) # relocates/scales x
     y <- 12*rbeta(30,2,8)+4
     plotED(B28,data=y)

