[R] Adding Scale to image

Peter Robinson peter.robinson at charite.de
Tue Jan 30 14:03:25 CET 2007

Dear List,

I have used the image() function to show a heat plot of a matrix of data 
whose intensity  is color-coded. I have two questions that I have not 
been able to solve by using the help system or google.

1) How can one add a scale/legend that shows what numerical values a 
given color corresponds to?
2) How can one "flip" the rows (i.e., change the order of the rows in 
the image plot)?

Thanks very much in advance, Peter

Dr. med. Peter N. Robinson, MSc.
Institut für Medizinische Genetik
Universitätsklinikum Charite
Augustenburger Platz 1
13353 Berlin
voice: 49-30-450569124
fax:   49-30-450569915
email: peter.robinson at charite.de

More information about the R-help mailing list