Change Dendrogram leaves
I want to modify the properties of the leaves in a dendrogram produced from plot of an hclust object. Minimally, I want to change the colors, but any help you can provide will be appreciated. I did try to google the answer, but but every solution that I saw seemed alot harder than what I would have guessed. A while ago, Joris Meys kindly provided me with this snippet of code that changes the color of leaves. Modify it to reflect your attributes. clusDendro <- as.dendrogram(Clustering) labelColors <- c("red", "blue", "darkgreen", "darkgrey", "purple") ## function to get colorlabels colLab <-