Question: heatmap.2 - change column & row locations; angle / rotate
gravatar for Cheng, Yong-Sheng
5.3 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<mailto:yongsheng.cheng at=""""> Tel: 06221 42 1622
cancer • 7.1k views
ADD COMMENTlink written 5.3 years ago by Cheng, Yong-Sheng10
Please log in to add an answer.


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