Heatmap/plot: Label by colours
0
0
Entering edit mode
@heike-pospisil-1097
Last seen 10.2 years ago
Dear list members, again a stupid question: I wish to plot the results of hierarchical clustering with dendrograms and with heatmaps. I used the following functions: heatmap(exprs(data)[selected,]) and plot(hclust(dist(t(exprs(data)[selected,]), method = "euclidean"), method = "average")) The different arrays belong to different classes and I would like to label these classes by colours - e.g. class 1 as blue, class 2 as red and class 3 as green. I have an expression set data and a target vector like this > targets$vivo [1] "h" "l" "h" "n" "h" "n" "0" "n" "h" "0" "h" "h" "h" "h" "h" "h" "h" "0" "h" [20] "h" "l" "l" "n" "h" "h" "h" "h" "n" "h" "0" "0" "h" "l" "h" "h" "h" "n" "h" [39] "h" "h" "h" "h" "l" "l" "h" "l" "0" "h" "h" "n" "h" "l" "0" "l" "h" "l" "l" [58] "n" "h" "0" "h" "0" "n" "0" "h" "0" "h" "h" "h" "h" "n" "n" "h" "n" "h" "l" [77] "l" "n" It would be great to label the celfile names by colors indicating the classes "h", "l", "n" and "0". Is this possible in BioC? Thanks again in advance and kind regards, Heike -- Dr. Heike Pospisil Center for Bioinformatics, University of Hamburg Bundesstrasse 43, 20146 Hamburg, Germany phone: +49-40-42838-7303 fax: +49-40-42838-7312
• 712 views
ADD COMMENT

Login before adding your answer.

Traffic: 800 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