[R] qqplot

2006-02-07 Thread Vincent Negre
Hello,
I would like to use qqplot() to compare two
experimental distributions. But I do not understand
how qqplot() compute quantiles. In fact, quantile() do
not return the same results.
Thank you for your help.
Vincent.

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


Re: [R] qqplot

2006-02-07 Thread Duncan Murdoch
On 2/6/2006 9:59 AM, Vincent Negre wrote:
 Hello,
 I would like to use qqplot() to compare two
 experimental distributions. But I do not understand
 how qqplot() compute quantiles. In fact, quantile() do
 not return the same results.

Take a look at the source code.  qqplot replaces the longer vector with 
one calculated by linear interpolation (that's what approx does) between 
the values of the other.

Duncan Murdoch

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


Re: [R] qqplot

2006-02-07 Thread François Pinard
[Vincent Negre]

[...] I do not understand how qqplot() compute quantiles.

Just type ``qqplot`` (without the parentheses) at the R prompt, to see 
the source code.  ``qqplot`` does not especially compute quantiles, 
which are rather obtained directly through sorting its arguments.

-- 
François Pinard   http://pinard.progiciels-bpi.ca

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html