[R] image axes

Roger Koenker roger at ysidro.econ.uiuc.edu
Tue Oct 8 15:31:32 CEST 2002

I'm plotting matrices with image() and would like the axes to reflect
the conventional view that the upper left corner of the plot is (1,1).
But image seems to think that the lower left corner is (1,1).  Can
someone suggest a way of persuading it to think otherwise.  In effect,
I just want the y axis to run from from 1 to n downwards, not upwards.

I thought that something like axes=FALSE in image and


would do this, but the rev() effect gets lost for reasons I'm not too
clear about.  Thanks for any suggestions...

url:	http://www.econ.uiuc.edu		Roger Koenker
email	roger at ysidro.econ.uiuc.edu		Department of Economics
vox: 	217-333-4558				University of Illinois
fax:   	217-244-6678				Champaign, IL 61820

r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch

More information about the R-help mailing list