[R] Changing axis origin for plot

Ralf B ralf.bierig at gmail.com
Wed Mar 24 01:08:38 CET 2010


Hi all,

I am plotting data using the simple plot function:

plot(data$x, data$y)

which results in a standard plot with the axis origin in the lower left corner.

^
|
|
|
|
| O O
| O O
---------------------------------->

Since my data are screen coordinates I need mirrored axis so that the
origin for both axis is in the upper left corner; like this:

|-------------------------------->
| O O
| O O
|
|
|
|
|
v

Anybody know how? I did not find any parameter when consulting the
help file. I assume its a more general parameter but where is that
documented?

Ralf



More information about the R-help mailing list