Entering edit mode
Cheng, Yong-Sheng
▴
10
@cheng-yong-sheng-6247
Last seen 10.4 years ago
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,margi
ns=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