Usage
clusplot.default(x, clus, diss = FALSE, cor = TRUE, stand = FALSE,
lines = 2, shade = FALSE, color = FALSE,
labels= 0, plotchar = TRUE,
col.p = "dark green", col.txt = col.p,
span = TRUE, xlim = NULL, ylim = NULL, ...)
Arguments
x
matrix or dataframe, or dissimilarity matrix, depending on
the value of the diss
argument. In case of a matrix (alike), each row corresponds to an observation,
and each column corresponds to a variable. All variables must be
clus
a vector of length n representing a clustering of x
. For
each observation the vector lists the number or name of the cluster
to which it has been assigned. clus
is often the clustering
component of the output of
diss
logical indicating if x
will be considered as a dissimilarity
matrix or a matrix of observations by variables (see x
arugment above).
cor
logical flag, only used when working with a data matrix (diss
= FALSE
). If TRUE, then the variables are scaled to unit variance.
stand
logical flag: if true, then the representations of the n observations in the
2-dimensional plot are standardized.
lines
integer out of 0, 1, 2
, used to obtain an idea of the
distances between ellipses. The distance between two ellipses E1
and E2 is measured along the line connecting the centers $m1$
and $m2$ of the two ellipses. In case E1 a
shade
logical flag: if TRUE, then the ellipses are shaded in relation to their
density. The density is the number of points in the cluster divided by the
area of the ellipse.
color
logical flag: if TRUE, then the ellipses are colored with respect to their
density. With increasing density, the colors are light blue, light
green, red and purple. To see these colors on the graphics device, an
appropriate color scheme shoul
labels
integer code, currently one of 0,1,2,3 and 4. If
[object Object],[object Object],[object Object],[object Object],[object Object]
The levels of the vector clus
are taken as labels for the
clusters. The labels
of the points a
plotchar
logical flag: if TRUE, then the plotting symbols differ for points belonging
to different clusters.
span
logical flag: if TRUE, then each cluster is represented by the ellipse with
smallest area containing all its points. (This is a special case of the
minimum volume ellipsoid.)
If FALSE, the ellipse is based on the mean and covariance matrix of the
col.p
color code used for the observation points.
col.txt
color code for used for the labels.
xlim, ylim
length 2 vectors giving the x- and y- ranges as in
plot.default
. ...
Further graphical parameters may also be supplied, see
par
.