Search
Question: heatmap.2 - change column & row locations; angle / rotate
0
gravatar for Cheng, Yong-Sheng
4.0 years ago by
Cheng, Yong-Sheng10 wrote:
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
ADD COMMENTlink written 4.0 years ago by Cheng, Yong-Sheng10
Please log in to add an answer.

Help
Access

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.2.0
Traffic: 258 users visited in the last hour