DataVisualizations::Silhouetteplot
Silhouette plot of classified data.
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.
Silhouetteplot(DataOrDistances, Cls, method='euclidean',
PlotIt=TRUE,...)
Cls
numeric vector, [1:n,1] classified datamethod
: Optional if Datamatrix is used, one of “euclidean”, “maximum”, “manhattan”, “canberra”, “binary” or “minkowski”.PlotIt
: Optional, Default:TRUE, FALSE to supress the plot...
: If PlotIt=TRUE: Further arguements to barplotdata("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().
silh Silhouette values in a N-by-1 vector
[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.