michael watson (IAH-C) wrote:
Hi

When I use plot(hclust(dist..)...)...) etc to create a dendrogram of a
hierarchial cluster analysis, I end up with a vertical tree.  What do I
need to do to get a horizontal tree?

Also, my users are used to seeing trees who's leaves all "end" at the
same place (eg. Like in minitab).  Is this possible in R?

Thanks

Mick


Mick,
If you use as.dendrogram first then the plot method for dendrograms has a horizontal option:


data(USArrests)
hc <- hclust(dist(USArrests), "ave")
dend1 <- as.dendrogram(hc)
plot(dend1, horiz = TRUE)

This also puts the leave at the end.

R version 1.9.0, 2004-05-06
Windows 2000

--sundar

______________________________________________
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

Reply via email to