Draws a 2-dimensional “clusplot” (clustering plot) on the
current graphics device.
The generic function has a default and a
clusplot(x, ...) ## S3 method for class 'partition' clusplot(x, main = NULL, dist = NULL, ...)
an R object, here, specifically an object of class
title for the plot; when
optional arguments passed to methods, notably the
clusplot.partition() method relies on
If the clustering algorithms
are applied to a data matrix of observations-by-variables then a
clusplot of the resulting clustering can always be drawn. When the
data matrix contains missing values and the clustering is performed
fanny, the dissimilarity
matrix will be given as input to
clusplot. When the clustering
clara was applied to a data matrix with
clusplot() will replace the missing values as described in
clusplot.default, because a dissimilarity matrix is not
default) method: An invisible
list with components
Shading, as for
clusplot.default, see there.
a 2-dimensional clusplot is created on the current graphics device.
clusplot.default for references;
## For more, see ?clusplot.default ## generate 25 objects, divided into 2 clusters. x <- rbind(cbind(rnorm(10,0,0.5), rnorm(10,0,0.5)), cbind(rnorm(15,5,0.5), rnorm(15,5,0.5))) clusplot(pam(x, 2)) ## add noise, and try again : x4 <- cbind(x, rnorm(25), rnorm(25)) clusplot(pam(x4, 2))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.