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, ...)
nrow(xd)
.clnum
is ignored for methods "dc" and "nc".TRUE
, the classes are distinguished by
symbols, and the default color is black/white.
If FALSE
, the classes are distinguished by
colors, and the default symbol is pch=1
.TRUE
, points with label
ignorenum
in clvecd
are ignored in the computation for
method
and are only projected afterwards onto the resulting
units. If pch=NULL
, the ploclvecd
. Only has effect if ignorepoints=TRUE
, see above.TRUE
and pch=NULL
and/or col=NULL
, some hopefully suitable
plot symbols (numbers and letters) and colors are chosen to
distinguish the values of clvecd
, starting with "1"/"black"
NULL
, a default text is used.NULL
, a default text is used.par
.
If NULL
, the default is used.par
.
If NULL
, the default is used.plot
or the
projection methods.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")
Run the code above in your browser using DataLab