Skip to content
Prev 8404 / 398502 Next

Reversing x-axis

On Thu, Dec 07, 2000 at 04:52:16PM -0500, ben at zoo.ufl.edu wrote:
If I understand this right, you want to reverse the direction of the axes.
This is a bug which seems to have crept in at some point and hung around
rather longer than it should have.  In the development version you can
now do the following:

	x <- rnorm(100)
	y <- rnorm(100)
	plot(x, y, xlim=rev(range(x)), ylim=rev(range(y)))

and get the result you expect.

	Ross
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
Message-ID: <20001208132925.A15111@stat1.stat.auckland.ac.nz>
In-Reply-To: <Pine.LNX.4.30.0012071632490.2666-100000@bolker.zoo.ufl.edu>; from ben@zoo.ufl.edu on Thu, Dec 07, 2000 at 04:52:16PM -0500