Plot the neighbourhood graph of a cluster solution together with projected data points.
# S4 method for kcca,missing
plot(x, y, which=1:2, project=NULL,
data=NULL, points=TRUE, hull=TRUE, hull.args=NULL,
number = TRUE, simlines=TRUE,
lwd=1, maxlwd=8*lwd, cex=1.5, numcol=FALSE, nodes=16,
add=FALSE, xlab="", ylab="", xlim = NULL,
ylim = NULL, pch=NULL, col=NULL, …)
An object of class "kcca"
Not used
Index numbers of dimensions of (projected) input space to plot.
Projection object for which a predict
method
exists, e.g., the result of prcomp
.
Data to include in plot. If the cluster object x
was created with save.data=TRUE
, then these are used by default.
Logical, shall data points be plotted (if available)?
If TRUE
, then hulls of the data are plotted (if available).
Can either be a logical value, one of the strings "convex"
(the default) or "ellipse"
, or a function for plotting the
hulls.
A list of arguments for the hull function.
Logical, plot number labels in nodes of graph?
Color and size of number labels in nodes of
graph. If numcol
is logical, it switches between black and
the color of the clusters, else it is taken as a vector of colors.
Plotting symbol to use for nodes if no numbers are drawn.
Logical, plot edges of graph?
Numerical, thickness of lines.
Logical, add to existing plot?
Axis labels.
Axis range.
Plotting symbols and colors for data points.
This works only for "kcca"
objects, no method is available for
"kccasimple" objects.
Friedrich Leisch. Visualizing cluster analysis and finite mixture models. In Chun houh Chen, Wolfgang Haerdle, and Antony Unwin, editors, Handbook of Data Visualization, Springer Handbooks of Computational Statistics. Springer Verlag, 2008.