[R] inverted axis

Uwe Ligges ligges at amadeus.statistik.uni-dortmund.de
Wed Mar 20 13:08:31 CET 2002

Jason Turner wrote:
> On Wed, Mar 20, 2002 at 09:41:04AM +0200, Juhana Vartiainen wrote:
> > (X,BR2) is plotted with X on horizontal and BR2 on vertical axis
> > (X, BR1) is plotted with X on vertical axis and BR1 on horizontal axis.
> help(plot)
> help(points)
> as in
> plot(X,BR2)
> points(BR1,X)
> help(par), with attention to "pch" would also probably help.
> This, and more, is all in "An Introduction to R" - $RHOME/doc/R-intro.pdf

Let me add:
You can also generate axis for the second set of data with axis()
manually (e.g. at the top and right hand side of the plot), see ?axis
for details.

Uwe Ligges
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