centree | R Documentation |
Plots the Ward-dendrogram of the centroids of a partitioning model. The plot is useful as a diagnosis tool for the choice o the number of clusters.
centree(drclust_out)
drclust_out |
Output of either doublekm, redkm, factkm or dpcakm. |
centroids-dkm |
Centroids x centroids distance matrix. |
Ionel Prunila, Maurizio Vichi
Ward J. H. (1963) "Hierarchical Grouping to Optimize an Objective Function" <doi:10.1080/01621459.1963.10500845>
# Iris data
# Loading the numeric variables of iris data
iris <- as.matrix(iris[,-5])
dc_out <- dpcakm(iris, 20, 3)
d <- centree(dc_out)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.