[R] help changing the size of labels in a dendrogram plot

From: Joy, Tom <Tom.Joy_at_rmbinternational.com>
Date: Mon 05 Jul 2004 - 18:26:46 EST


I am having trouble changing the size of labels when plotting a dendrogram created from hclust, I want to do it this way so I can use the 'horiz=TRUE' option in a dendrogram plot and rotate my chart.

Can anyone help either to tell my how to rotate a plot of an hclust object or to change the size of my labels in a dendrogram plot

## CODE THAT WORKS
##x<- dataframe of observations

distance <- dist(t(x))
clust <- hclust(distance, method = "ward") plot(clust,cex=0.6)

##CODE THAT DOESN'T CHANGE THE SIZE OF DATA LABELS
distance <- dist(t(x))
clust <- hclust(distance, method = "ward") dend=as.dendrogram(clust,hang=-1)
plot(dend, cex=0.6,edgePar = list(lty=1, col=c("black","darkgrey")), edge.root=FALSE,horiz=TRUE)

Regards,
Tom Joy

        [[alternative HTML version deleted]]



R-help@stat.math.ethz.ch 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 Received on Mon Jul 05 18:31:13 2004

This archive was generated by hypermail 2.1.8 : Wed 03 Nov 2004 - 22:54:41 EST