Hi, How to plot the dendrogram or tree for kmeans, like we do for hclust ? [[alternative HTML version deleted]]
Bill.Venables at csiro.au
2008-Mar-20 04:45 UTC
[R] How to plot the dendrogram or tree for kmeans ?
Why do you think there is one? kmeans is an agglomerative clustering algorithm, not a recursively dividing one. Since there is no clustering hierarchy, so there is no dendrogram. -----Original Message----- From: r-help-bounces at r-project.org [mailto:r-help-bounces at r-project.org] On Behalf Of Ng Stanley Sent: Thursday, 20 March 2008 12:30 PM To: r-help Subject: [R] How to plot the dendrogram or tree for kmeans ? Hi, How to plot the dendrogram or tree for kmeans, like we do for hclust ? [[alternative HTML version deleted]] ______________________________________________ R-help at r-project.org mailing list stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
On Thu, Mar 20, 2008 at 5:45 AM, <Bill.Venables at csiro.au> wrote:> Why do you think there is one? kmeans is an agglomerative clustering > algorithm, not a recursively dividing one. > > Since there is no clustering hierarchy, so there is no dendrogram.However, you could create a "clustergram": @article{schonlau:2002, Author = {Schonlau, Matthias}, Journal = {The Stata Journal}, Pages = {316-327}, Title = {The clustergram: A graph for visualizing hierarchical and non-hierarchical cluster analyses}, Volume = {3}, Year = {2002}, Url = {schonlau.net/clustergram.html} } Hadley -- had.co.nz