Usage
silhouette(x, ...)
silhouette.default (x, dist, ...)
silhouette.partition(x, ...)sortSilhouette(object, ...)
## S3 method for class 'silhouette':
summary(object, FUN = mean, \dots)
## S3 method for class 'silhouette':
plot(x, nmax.lab = 40, max.strlen = 5,
main = NULL, sub = NULL, xlab = expression("Silhouette width "* s[i]),
col = heat.colors(n), cex.names = par("cex.axis"),
do.n.k = TRUE, do.clus.stat = TRUE, ...)
Arguments
x
an object of appropriate class; for the default
method an integer vector with cluster codes in 1:k
or a list
with such an x$clustering
component.
dist
a dissimilarity object inheriting from class
dist
or coercible to one. object
an object of class silhouette
.
...
further arguments passed to and from methods.
FUN
function used summarize silhouette widths.
nmax.lab
integer indicating the number of labels which is
considered too large for single-name labeling the silhouette plot.
max.strlen
positive integer giving the length to which
strings are truncated in silhouette plot labeling.
main, sub, xlab
arguments to title
; have a
sensible non-NULL default here. do.n.k
logical indicating if $n$ and $k$ ``title text''
should be written.
do.clus.stat
logical indicating if cluster size and averages
should be written right to the silhouettes.