Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

resize and adjust the heatmap in heatmap.2

Tags:

r

heatmap

I've generated a heatmap like this: enter image description here

The X-axis and Y-axis labels don't show completely. My code is here:

 heatmap.2(x,col=blueyelred,colsep=c(1:6),rowsep=(1:62), 
           sepwidth=c(0.05,0.05), sepcolor="white", trace="none",
           Rowv=F,Colv=F, scale="none", dendrogram="none",key=F, 
           lhei = c(0.05,5),margins=c(1,8))

Is there any way to adjust it.

Thanks! Cam

like image 675
user1586241 Avatar asked Aug 21 '13 01:08

user1586241


1 Answers

A few tips:

  • to reduce the font size, use the cexRow and cexCol arguments, e.g.

    heatmap.2(x, ...., cexRow=0.5)
    
  • Adjust the values in the hlei and margins arguments.

like image 94
csgillespie Avatar answered Oct 04 '22 17:10

csgillespie