[BioC] heatmap.2 - change column & row locations; angle / rotate

Cheng, Yong-Sheng yongsheng.cheng at Dkfz-Heidelberg.de
Thu Nov 14 14:42:05 CET 2013


Dear folks,

I am also looking for method to rotate label text with heatmap.2. Eventually, I have managed to find this solution:
library(gplots)
library(RColorBrewer)
heatmap.2(x,col=rev(brewer.pal(11,"Spectral")),cexRow=1,cexCol=1,margins=c(12,8),trace="none",srtCol=45)

The key argument is srtCol(or srtRow for row labels), which is used to rotate column labels in gplots.

Have fun!

Kind Regards

Yong-Sheng Cheng

German Cancer Research Center, B140
Im Neuenheimer Feld 580
69120 Heidelberg
Germany

Email: yongsheng.cheng at dkfz.de<mailto:yongsheng.cheng at dkfz.de>
Tel:    06221 42 1622



More information about the Bioconductor mailing list