plot(clust) rect.hclust(clust, h = 0.65) Is that what you wanted?
----- Original Message ----- From: Madeleine Seeland <madeleine.seel...@in.tum.de> To: r-help@r-project.org Cc: Sent: Tuesday, September 13, 2011 9:25 AM Subject: [R] help with hclust and cutree Hello, I would like to cut a hclust tree into several groups at a specific similarity. I assume this can be achieved by specifying the "h" argument with the specified similarity, e.g.: clust<-hclust(dist,"average") cut<-cutree(clust,h=0.65) Now, I would like to draw rectangles around the branches of the dendrogram highlighting the corresponding clusters, as is done by the function rect.hclust(). How can I achieve this with the ouput of cutree? I would appreciate your help! Best regards, Madeleine ______________________________________________ R-help@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. ______________________________________________ R-help@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.