clPairs                package:mclust                R Documentation

_P_a_i_r_w_i_s_e _S_c_a_t_t_e_r _P_l_o_t_s _s_h_o_w_i_n_g _C_l_a_s_s_i_f_i_c_a_t_i_o_n

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

     Creates a scatter plot for each pair of variables in given data.
     Observations in different classes are represented by different
     symbols.

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

     clPairs(data, classification, symbols, labels=dimnames(data)[[2]], 
             CEX=1, col, ...)

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

    data: A numeric vector, matrix, or data frame of observations.
          Categorical variables are not allowed. If a matrix or data
          frame, rows correspond to observations and columns correspond
          to variables.  

classification: A numeric or character vector representing a
          classification of observations (rows) of 'data'. 

 symbols: Either an integer or character vector assigning a plotting
          symbol to each unique class 'classification'. Elements in
          'symbols' correspond to classes in order of appearance in the
          sequence of observations (the order used by the function
          'unique'). Default: If _G_ is the number of groups in the
          classification, the first _G_ symbols in '.Mclust\$symbols',
          otherwise if _G_ is less than 27 then the first _G_ capital
          letters in the Roman alphabet. If no 'classification'
          argument is given the default symbol is '"."'. 

  labels: A vector of character strings for labeling the variables. The
          default is to use the column dimension names of 'data'. 

     CEX: An argument specifying the size of the plotting symbols.  The
          default value is 1. 

     col: Color vector to use. Default is one color per class. Splus
          default: all black. 

     ...: Additional arguments to be passed to the graphics device. 

_S_i_d_e _E_f_f_e_c_t_s:

     Scatter plots for each combination of variables in 'data' are
     created on the current graphics device. Observations of different
     classifications are labeled with different symbols.

_R_e_f_e_r_e_n_c_e_s:

     C. Fraley and A. E. Raftery (2002b). MCLUST:Software for
     model-based clustering, density estimation and discriminant
     analysis.  Technical Report, Department of Statistics, University
     of Washington.  See <URL: http://www.stat.washington.edu/mclust>.

_S_e_e _A_l_s_o:

     'pairs', 'coordProj', 'mclustOptions'

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

     data(iris)
     irisMatrix <- as.matrix(iris[,1:4])
     irisClass <- iris[,5]

     clPairs(irisMatrix, cl=irisClass, symbols=as.character(1:3))

