panel                package:cwhplot                R Documentation

_A_l_t_e_r_n_a_t_i_v_e _p_a_n_e_l _f_u_n_c_t_i_o_n_s _f_o_r _l_a_t_t_i_c_e _p_l_o_t_s

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

     Functions which can be used instead of the default functions in
     panel plots.

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

     panel.hist(x, ...)
     panel.cor(x, y, digits=2, prefix="", cex.cor)

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

    x, y: variables defining the contents of the panel.

  digits: Number of decimals after dot with which correlations will be
          printed.

  prefix: Prefix text for numbers.

 cex.cor: Determines height of printed digits, may be missing.

     ...: graphical parameters can be supplied. see function definition
          for details.

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

     ?? 

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

     n <- 1000; a <- rnorm(n,mean=1)
     x <- matrix(c(a,a+2*log(runif(n)),a^2+0.2*rnorm(n,mean=1)),nrow = n)
     pairs(x,lower.panel=panel.smooth, diag.panel=panel.hist,
     upper.panel=panel.cor, labels = c("rnorm","rnorm+log(runif)","rnorm^2"))

