> I try to make a plot like this:
> 
> Y |
>   |
>   |               o 
>   |         o        o
>   |     o               o
>   |  o                     o
>   |o                         o   o
>   |--------------------------------
>    0 10 20 30 40 50 60 70 80 90 100 (A)
>  100 90 80 70 60 50 40 30 20 10 0   (B)

x = seq(10,100,10)
y = runif(10)
plot(x,y)
par(mgp = c(3,2,0))
Axis(side=1, at=x, labels=rev(x))

> or
>       B
>   100 90 80 70 60 50 40 30 20 10 0
> Y |--------------------------------
>   |
>   |               o 
>   |         o        o
>   |     o               o
>   |  o                     o
>   |o                         o   o
>   |--------------------------------
>    0 10 20 30 40 50 60 70 80 90 100
>       A

Code as before, but without the par statement, and using Axis(side=3, ...)

Regards,
Richie.

Mathematical Sciences Unit
HSL

------------------------------------------------------------------------
ATTENTION:

This message contains privileged and confidential inform...{{dropped:20}}

______________________________________________
[email protected] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to