heatmap.2 - change column & row locations; angle / rotate
0
0
Entering edit mode
@cheng-yong-sheng-6247
Last seen 7.1 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
Cancer Cancer • 8.5k views
ADD COMMENT

Login before adding your answer.

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