Color in the lefs of a dendrogram?
1
0
Entering edit mode
@johan-lindberg-815
Last seen 9.6 years ago
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]]
Visualization Clustering Visualization Clustering • 1.1k views
ADD COMMENT
0
Entering edit mode
@martin-maechler-2
Last seen 4.7 years ago
Switzerland
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 COMMENT

Login before adding your answer.

Traffic: 671 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6