[R] scatter plot

Adaikalavan Ramasamy ramasamy at cancer.org.uk
Fri Aug 12 13:04:05 CEST 2005


Here is a hack

 par(mfrow=c(1,2))

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




More information about the R-help mailing list