[R] Adding Scale to image

From: Peter Robinson <peter.robinson_at_charite.de>
Date: Tue 30 Jan 2007 - 13:03:25 GMT

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@charite.de

R-help@stat.math.ethz.ch mailing list
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
Received on Wed Jan 31 00:00:56 2007

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Wed 31 Jan 2007 - 12:30:28 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.