[R] rotate dendrogram

Ralph Modjesch ralph.modjesch at pfeiffer-koberstein-immobilien.de
Wed Jul 14 12:26:10 CEST 2010


Hi,

I have searched a methode to rotate a dendrogramm with the leafs to the left

The dendrogram with the leafs to the bottom.
> plot(hclust(dist(USArrests), "ave"))

plot from the dendrogram{stats} packages can rotate the dendrogram, but
only with the leafs to the right.
> plot(as.dendrogram(hclust(dist(USArrests), "ave")), horiz=TRUE)

draw.dendrogram from the NeatMap packages can rotate the dendrogram, but
here are the object-names (x-axis) missing.
> library(NeatMap)
> ggplot.default() + theme_bw() +
draw.dendrogram(hclust(dist(USArrests), "ave"), dendro.dir="right")


How can I reflect the dendrogram from plot 2 or add the names to plot 3?

Thanks.

-- 
Mit freundlichen Grüßen

Dipl. Ing. (FH) Ralph Modjesch



More information about the R-help mailing list