An embedded and charset-unspecified text was scrubbed... Name: not available Url: https://stat.ethz.ch/pipermail/r-help/attachments/20080320/025c9bef/attachment.pl
How to plot the dendrogram or tree for kmeans ?
3 messages · Ng Stanley, Bill Venables, Hadley Wickham
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 ? ______________________________________________ R-help at r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.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 = {http://www.schonlau.net/clustergram.html}
}
Hadley