[R] plot the y-axis upside down

Owen, Jason wowen at richmond.edu
Fri Jun 17 21:31:39 CEST 2011


Hello,

I need to create a scatterplot where the y-axis is upside down.  If I have non-negative bivariate data in objects "x" and "y," then the operation

plot(x, -y)

gives me the figure I want -- a mirror image of plot(x, y) -- except that the y-values (coordinates) are negative, which I don't want.  Is there a simple way to do this?

Jason



More information about the R-help mailing list