Skip to content
Back to formatted view

Raw Message

Message-ID: <OFD5098146.7426656F-ON802573B0.004CF3EB-802573B0.004D4CE1@hsl.gov.uk>
Date: 2007-12-13T14:04:25Z
From: Richard Cotton
Subject: Very simple question on plot
In-Reply-To: <200712131116.19592.chrysopa@hsl.gov.uk>

> 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}}