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]]

______________________________________________
[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