[R] labeling rows in heatmap.2
1Rnwb
sbpurohit at gmail.com
Tue Mar 20 21:42:48 CET 2012
how can i put the row labels on the left hand of the heatmap in heatmap.2?
abnr<-structure(c(1, 0.678622097406395, 0.670294749652918,
-0.0016314464654279,
-0.000519068106572792, 0.199581999119988, -0.0106623494189115,
0.0840111691399559, -0.0461494399639137, 0.249279171677728, NA,
1, 0.757114062773504, 0.0352642759270137, -0.0255518450373996,
0.0943268190664674, -0.0536269679247722, 0.126773293034976,
0.201980408094959,
0.350765436868705, NA, NA, 1, -0.0036285048239171, -0.0130341823193391,
0.0687025839829192, 0.0178114338783461, 0.152626558218618,
0.275694188182626,
0.516142788252573, NA, NA, NA, 1, 0.164352390738372, 0.0458032354120583,
-0.105461242066774, 0.128550333248478, -0.0388185507340826,
-0.0114545823453345,
NA, NA, NA, NA, 1, 0.0771316851136, -0.00659533531241862,
0.0901665606000509,
-0.0220524408127054, 0.0488218042091934, NA, NA, NA, NA, NA,
1, 0.208114979820194, 0.438398355562088, -0.0635609915410962,
0.0769889130808, NA, NA, NA, NA, NA, NA, 1, 0.350782329458641,
0.102284906838582, 0.00467073053941224, NA, NA, NA, NA, NA, NA,
NA, 1, 0.170117904443778, 0.166988169283325, NA, NA, NA, NA,
NA, NA, NA, NA, 1, 0.324711157100758, NA, NA, NA, NA, NA, NA,
NA, NA, NA, 1), .Dim = c(10L, 10L), .Dimnames = list(c("TNFB",
"MCP3", "IL6", "IGFBP6", "sCD40L", "PTH", "IGFBP2", "OPG", "IL1Ra",
"TNFA"), c("TNFB", "MCP3", "IL6", "IGFBP6", "sCD40L", "PTH",
"IGFBP2", "OPG", "IL1Ra", "TNFA")))
heatmap.2(abnr, breaks=c(0,0.05,0.1,0.25,0.35), col=brewer.pal(4,"Blues"),
Rowv=FALSE, Colv=FALSE,symm=TRUE,
key=TRUE,symkey=FALSE, density.info="none", trace="none", cexRow=0.75,
keysize=0.8,
scale = "none", dendrogram="none",main='AbN')
I would appreciate any response on this.
Thanks
sharad
--
View this message in context: http://r.789695.n4.nabble.com/labeling-rows-in-heatmap-2-tp4490314p4490314.html
Sent from the R help mailing list archive at Nabble.com.
More information about the R-help
mailing list