Question: Color in the lefs of a dendrogram?
12.3 years ago by
Johan Lindberg • 270
Johan Lindberg • 270 wrote:
Hi all. I have a question of how to put color in a plot of a hierarchical clustering that I have done with 24 microarrays in an experiment. The basic code that I use to plot: sampdist <- dist(t(Mmatrix), method="euclidean") sclus <- hclust(sampdist, method="average") plot(sclus, cex=0.7) With the argument labels = NULL I can control the names of the leafs but is there some way of giving the different leafs different color? Ive tried the usual col.axis col.lab col.main col.sub col But none seem to work. Ive also looked into the helpfile of plot.hclust but nothing seems to be noted there. It would really be great to be able to put color to the leafs to facilitate visualization. What I am doing now is to save the image as a postscript and change the postscript file manually. But that is no fun :( Help, someone? Best regards // Johan [[alternative HTML version deleted]]
ADD COMMENT • link •