scatterWithHist         package:davidTiling         R Documentation

_S_c_a_t_t_e_r_p_l_o_t _w_i_t_h _h_i_s_t_o_g_r_a_m_s _o_f _m_a_r_g_i_n_a_l _d_i_s_t_r_i_b_u_t_i_o_n_s

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

     Scatterplot with histograms of marginal distributions.

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

     scatterWithHist(x, breaks, barcols, xlab, ylab, ...) 

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

       x: numeric matrix with 2 columns.

  breaks: numeric vector with histogram breaks, see 'hist'.

 barcols: character vector of length 2, colors for the histogram
          filling.

    xlab: characterof length 1, label for x-axis.

    ylab: characterof length 1, label for y-axis.

     ...: further arguments that get passed on to 'plot'.

_V_a_l_u_e:

     The function is called for its side effect.

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

     W. Huber <huber@ebi.ac.uk>

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

       x = rexp(100)
       x = cbind(x, x+0.6*rnorm(length(x)))
       scatterWithHist(x,
          breaks=seq(min(x),max(x),length=20),
          barcols=c("mistyrose", "lightblue"),
          xlab="Daffodil", ylab="Petunia", pch=16)

