plot.cor                 package:sma                 R Documentation

_R_e_d _a_n_d _G_r_e_e_n _C_o_l_o_r _I_m_a_g_e _o_f _C_o_r_r_e_l_a_t_i_o_n _M_a_t_r_i_x

_D_e_s_c_r_i_p_t_i_o_n:

     This function produces a red and green color image of a
     correlation matrix using an RGB color specification. Increasingly
     positive correlations are represented with reds of increasing
     intensity, and increasingly negative correlations are represented
     with greens of increasing intensity.

_U_s_a_g_e:

     plot.cor(x, new=FALSE, nrgcols=50, labels=FALSE, labcols=1, title="", ...)

_A_r_g_u_m_e_n_t_s:

       x: a matrix of numerical values.

     new: If 'new=F', 'X' must already be a correlation matrix. If
          'new=T', the correlation matrix for the columns of 'X' is
          computed and displayed in the image.

 nrgcols: the number of colors (>= 1) to be used in the red and green
          palette.

  labels: vector of character strings to be placed at the tickpoints,
          labels for the columns of 'X'.

 labcols: colors to be used for the labels of the columns of 'X'.
          'labcols' can have either length 1, in which case all the
          labels are displayed using the same color, or the same length
          as 'labels', in which case a color is specified for the label
          of each column of 'X'.

   title: character string, overall title for the plot.

     ...: graphical parameters may also be supplied as arguments to the
          function (see 'par'). For comparison purposes,  it is good to
          set 'zlim=c(-1,1)'.

_A_u_t_h_o_r(_s):

     Sandrine Dudoit, sandrine@stat.berkeley.edu

_S_e_e _A_l_s_o:

     'plot.mat','rgcolors.func', 'cor.na', 'cor', 'image', 'rgb'.

