Last chance! 50% off unlimited learning
Sale ends in
clPairs(data, classification, symbols, colors, labels = dimnames(data)[[2]],
CEX = 1, gap = 0.2, ...)clPairsLegend(x, y, class, col, pch, ...)
data
.classification
. Elements in symbols
correspond to classes in order of appearance in the sequence of
observations (the order useclassification
. Elements in colors
correspond to classes in order of appearance in the sequence of
observations (the order used by the fudata
.pairs
).par("usr" = c(0,1,0,1))
.clPairs
invisibly returns a list with the following
components:clPairs
draws scatter plots on the current graphics
device for each combination of variables in data
. Observations of
different classifications are labeled with different symbols.
The function clPairsLegend
can be used to add a legend. See examples
below.pairs
,
coordProj
,
mclust.options
clPairs(iris[,1:4], cl = iris$Species)
clp <- clPairs(iris[,1:4], cl = iris$Species, lower.panel = NULL)
clPairsLegend(0.1, 0.4, class = clp$class,
col = clp$col, pch = clp$pch,
title = "Iris data")
Run the code above in your browser using DataLab