[R] Very simple question on plot
Richard.Cotton at hsl.gov.uk
Richard.Cotton at hsl.gov.uk
Thu Dec 13 15:04:25 CET 2007
> 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}}
More information about the R-help
mailing list