Re: [R] scatter plot

From: Adaikalavan Ramasamy <>
Date: Fri 12 Aug 2005 - 21:04:05 EST

Here is a hack


 x  <- rnorm(1000)
 y  <- x + rnorm(1000)
 xp <- (rank(x)-1)/(length(x)-1)

 plot( x, y )
 plot( xp, y )

But do notice that by using percentiles, it spreads the 'x' values evenly. This may be important for points at the extremes.

Regards, Adai

On Thu, 2005-08-11 at 15:40 -0700, Dean Sonneborn wrote:
> I'd like to do a simple scatter plot but instead of using the variable
> values on the X axis I would like to plot the percentiles. I searched in
> the manual for percentiles but did not find what I was looking for. I've
> been using SAS for several years but I new to R.
> mailing list PLEASE do read the posting guide! Received on Fri Aug 12 09:05:08 2005

This archive was generated by hypermail 2.1.8 : Sun 23 Oct 2005 - 15:15:35 EST