powered by
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)
Centroids x centroids distance matrix.
Output of either doublekm, redkm, factkm or dpcakm.
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)
Run the code above in your browser using DataLab