plotcluster | R Documentation |
Plots to distinguish given classes by ten available projection methods. Includes classical discriminant coordinates, methods to project differences in mean and covariance structure, asymmetric methods (separation of a homogeneous class from a heterogeneous one), local neighborhood-based methods and methods based on robust covariance matrices. One-dimensional data is plotted against the cluster number.
plotcluster(x, clvecd, clnum=NULL,
method=ifelse(is.null(clnum),"dc","awc"),
bw=FALSE,
ignorepoints=FALSE, ignorenum=0, pointsbyclvecd=TRUE,
xlab=NULL, ylab=NULL,
pch=NULL, col=NULL, ...)
x |
the data matrix; a numerical object which can be coerced to a matrix. |
clvecd |
vector of class numbers which can be coerced into
integers; length must equal
|
method |
one of
Note that "bc", "vbc", "adc", "awc", "arc" and "anc" assume that there are only two classes. |
clnum |
integer. Number of the class which is attempted to plot
homogeneously by "asymmetric methods", which are the methods
assuming that there are only two classes, as indicated above.
|
bw |
logical. If |
ignorepoints |
logical. If |
ignorenum |
one of the potential values of the components of
|
pointsbyclvecd |
logical. If |
xlab |
label for x-axis. If |
ylab |
label for y-axis. If |
pch |
plotting symbol, see |
col |
plotting color, see |
... |
additional parameters passed to |
For some of the asymmetric methods, the area in the plot
occupied by the "homogeneous class" (see clnum
above) may be
very small, and it may make sense to run plotcluster
a second
time specifying plot parameters xlim
and ylim
in a
suitable way. It often makes sense to magnify the plot region
containing the homogeneous class in this way
so that its separation from the rest can be
seen more clearly.
Christian Hennig christian.hennig@unibo.it https://www.unibo.it/sitoweb/christian.hennig/en/
Hennig, C. (2004) Asymmetric linear dimension reduction for classification. Journal of Computational and Graphical Statistics 13, 930-945 .
Hennig, C. (2005) A method for visual cluster validation. In: Weihs, C. and Gaul, W. (eds.): Classification - The Ubiquitous Challenge. Springer, Heidelberg 2005, 153-160.
Seber, G. A. F. (1984). Multivariate Observations. New York: Wiley.
Fukunaga (1990). Introduction to Statistical Pattern Recognition (2nd ed.). Boston: Academic Press.
discrcoord
, batcoord
,
mvdcoord
, adcoord
,
awcoord
, ncoord
,
ancoord
.
discrproj
is an interface to all these projection methods.
rFace
for generation of the example data used below.
set.seed(4634)
face <- rFace(300,dMoNo=2,dNoEy=0)
grface <- as.integer(attr(face,"grouping"))
plotcluster(face,grface)
plotcluster(face,grface==1)
plotcluster(face,grface, clnum=1, method="vbc")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.