clPairs {mclust} | R Documentation |
Creates a scatter plot for each pair of variables in given data. Observations in different classes are represented by different symbols.
clPairs(data, classification, symbols, colors, labels=dimnames(data)[[2]], CEX=1, ...)
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 |
symbols |
Either an integer or character vector assigning a plotting symbol to each
unique class in |
colors |
Either an integer or character vector assigning a color to each
unique class in |
labels |
A vector of character strings for labeling the variables. The default
is to use the column dimension names of |
CEX |
An argument specifying the size of the plotting symbols. The default value is 1. |
... |
Additional arguments to be passed to the graphics device. |
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.
C. Fraley and A. E. Raftery (2006, revised 2010). MCLUST Version 3 for R: Normal Mixture Modeling and Model-Based Clustering, Technical Report no. 504, Department of Statistics, University of Washington.
pairs
,
coordProj
,
mclustOptions
clPairs(iris[,-5], cl=iris[,5], symbols=as.character(1:3))