[R] heatmap.2 - change column & row locations; angle / rotate

Karl Brand k.brand at erasmusmc.nl
Sun Jul 18 17:44:05 CEST 2010


Esteemed R user's,

I'm struggling to achieve some details of a heatmap using heatmap.2():

1. Change label locations, for both rows & columns from the default 
right & bottom, to left and top.
Can this be done within heatmap.2()? Or do i need to suppress this 
default behavior (how) and call a new function to relabel (what) 
specifying locations?

2. Change the angle of the labels.
By default column labels are 90deg anti-clock-wise from horizontal. How 
to bring them back to horizontal? Or better, rotate 45deg clock-wise 
from horizontal (ie., rotate 135deg a.clock.wise from default)?

Any suggestions or pointers to helpful resources greatly appreciated,

Karl

-- 
Karl Brand
Department of Genetics
Erasmus MC
Dr Molewaterplein 50
3015 GE Rotterdam
T +31 (0)10 704 3457 |F +31 (0)10 704 4743 |M +31 (0)642 777 268



More information about the R-help mailing list