Re: [R] Adding Scale to image

From: Vladimir Eremeev <>
Date: Tue 30 Jan 2007 - 13:39:04 GMT

Dr. med. Peter Robinson wrote:
> 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?
by plotting one more sequence of points
For example

layout(matrix(c(1,2)),heights=c(0.9,0.1)) image( blah blah blah )

Dr. med. Peter Robinson wrote:
> 2) How can one "flip" the rows (i.e., change the order of the rows in
> the image plot)?

By flipping the source matrix, displayed with "image"


View this message in context:
Sent from the R help mailing list archive at

______________________________________________ mailing list
PLEASE do read the posting guide
and provide commented, minimal, self-contained, reproducible code.
Received on Wed Jan 31 00:50:10 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 Tue 30 Jan 2007 - 15:30:25 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.