Skip to content
Back to formatted view

Raw Message

Message-ID: <1123844646.5868.11.camel@dhcppc3>
Date: 2005-08-12T11:04:05Z
From: Adaikalavan Ramasamy
Subject: scatter plot
In-Reply-To: <42FBD3D1.1050408@yellow.ucdavis.edu>

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