Search
Question: Color in the lefs of a dendrogram?
0
gravatar for Johan Lindberg
13.1 years ago by
Johan Lindberg270 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 COMMENTlink modified 13.1 years ago by Martin Maechler330 • written 13.1 years ago by Johan Lindberg270
0
gravatar for Martin Maechler
13.1 years ago by
Switzerland
Martin Maechler330 wrote:
Y >>>>> "Johan" == Johan Lindberg <johanl@biotech.kth.se> >>>>> on Wed, 27 Oct 2004 10:14:57 +0200 writes: Johan> Hi all. I have a question of how to put color in a plot of a Johan> hierarchical clustering that I have done with 24 microarrays in an Johan> experiment. The basic code that I use to plot: Johan> sampdist <- dist(t(Mmatrix), method="euclidean") Johan> sclus <- hclust(sampdist, method="average") Johan> plot(sclus, cex=0.7) Use dclus <- as.dendrogram(sclus) and -- after reading help(dendrogram) and maybe executing example(dendrogram) use plot(dclus, ......................) Martin Maechler, ETH Zurich
ADD COMMENTlink written 13.1 years ago by Martin Maechler330
Please log in to add an answer.

Help
Access

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.2.0
Traffic: 198 users visited in the last hour