Skip to content
Back to formatted view

Raw Message

Message-ID: <e15020hufsfl43oteaht71mut9jt9h6srq@4ax.com>
Date: 2004-02-03T21:42:59Z
From: Duncan Murdoch
Subject: how to change one of the axis to normal probability scale
In-Reply-To: <200402032050.UAA11644@webmail0.york.ac.uk>

On 03 Feb 2004 20:50:36 +0000, C Chang <cc164 at york.ac.uk> wrote :

>Hi,
> 
>I would like to plot a graph with one axis in log scale and the other in
>normal probability scale using R. I cannot change the axis scale to
>probability scale. What can be a solution? Thanks.

You should plot with "axes=F", then add the axes manually.

For example, 

x <- sort(rnorm(100))
y <- sort(rnorm(100))
plot(x,y,axes=F)
box()
at <- c(0.01,0.1,0.5,0.9,0.99)
axis(1,at=qnorm(at),labels=at)
axis(2,at=qnorm(at),labels=at)
box()

(At least I think that's a "normal probability scale", but you better
check against your own definition.)

Duncan Murdoch