Silhouette plot of classified data.

Description

Silhouette plot of cluster silhouettes for the n-by-d data matrix Data or distance matrix where the clusters are defined in the vector Cls.

Usage


Silhouetteplot(DataOrDistances, Cls, method='euclidean',
PlotIt=TRUE,...)

Arguments

Examples

data("Lsun3D")
Cls=Lsun3D$Cls
Data=Lsun3D$Data
#clear cluster structure
plot(Data[,1:2],col=Cls)

#However, the silhouette plot does not indicate a very good clustering in cluster 1 and 2
Silhouetteplot(Data,Cls = Cls,main='Silhouetteplot')
## Distances are not in a symmetric matrix, Datamatrix is assumed and dist() ist called
## Subordinate package (parallelDist) is missing. No computations are performed.
## Please install the package which is defined in "Suggests". Falling back to dist().

Details

Value

silh Silhouette values in a N-by-1 vector

References

[Thrun, 2018] Thrun, M. C.: Projection Based Clustering through Self-Organization and Swarm Intelligence, doctoral dissertation 2017, Springer, ISBN: 978-3-658-20539-3, Heidelberg, 2018. [Rousseeuw, 1987] Rousseeuw, Peter J.: Silhouettes: a Graphical Aid to the Interpretation and Validation of Cluster Analysis, Computational and Applied Mathematics, 20, p.53-65, 1987.