Re: [R] Simple qqplot question

2010-06-25 Thread Bert Gunter
- Bert Bert Gunter Genentech Nonclinical Biostatistics -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of Joris Meys Sent: Friday, June 25, 2010 2:15 AM To: Ralf B Cc: R mailing list Subject: Re: [R] Simple qqplot question Sorry, mis

Re: [R] Simple qqplot question

2010-06-25 Thread Joris Meys
Sorry, missed the two variable thing. Go with the lm solution then, and you can tweak the plot yourself (the confidence intervals are easily obtained via predict(lm.object, interval="prediction") ). The function qq.plot uses robust regression, but in your case normal regression will do. Regarding

Re: [R] Simple qqplot question

2010-06-24 Thread Ralf B
Short rep: I have two distributions, data and data2; each build from about 3 million data points; they appear similar when looking at densities and histograms. I plotted qqplots for further eye-balling: qqplot(data, data2, xlab = "1", ylab = "2") and get an almost perfect diagonal line which mean

Re: [R] Simple qqplot question

2010-06-24 Thread Ralf B
Unfortunately not. I want a qqplot from two variables. Ralf On Thu, Jun 24, 2010 at 7:23 PM, Joris Meys wrote: > Also take a look at qq.plot in the package "car". Gives you exactly > what you want. > Cheers > Joris > > On Fri, Jun 25, 2010 at 12:55 AM, Ralf B wrote: >> More details... >> >> I

Re: [R] Simple qqplot question

2010-06-24 Thread Joris Meys
Also take a look at qq.plot in the package "car". Gives you exactly what you want. Cheers Joris On Fri, Jun 25, 2010 at 12:55 AM, Ralf B wrote: > More details... > > I have two distributions which are very similar. I have plotted > density plots already from the two distributions. In addition, >

Re: [R] Simple qqplot question

2010-06-24 Thread Bert Gunter
24, 2010 2:45 PM To: r-help@r-project.org Subject: [R] Simple qqplot question I am a beginner in R, so please don't step on me if this is too simple. I have two data sets datax and datay for which I created a qqplot qqplot(datax,datay) but now I want a line that indicates the perfect match so

Re: [R] Simple qqplot question

2010-06-24 Thread Ralf B
More details... I have two distributions which are very similar. I have plotted density plots already from the two distributions. In addition, I created a qqplot that show an almost straight line. What I want is a line that represents the ideal case in which the two distributions match perfectly.

Re: [R] Simple qqplot question

2010-06-24 Thread Greg Snow
n...@r-project.org [mailto:r-help-boun...@r- > project.org] On Behalf Of Ralf B > Sent: Thursday, June 24, 2010 3:45 PM > To: r-help@r-project.org > Subject: [R] Simple qqplot question > > I am a beginner in R, so please don't step on me if this is too > simple. I have t

Re: [R] Simple qqplot question

2010-06-24 Thread stephen sefick
You are going to have to define the question a little better. Also, please provide a reproducible example. On Thu, Jun 24, 2010 at 4:44 PM, Ralf B wrote: > I am a beginner in R, so please don't step on me if this is too > simple. I have two data sets datax and datay for which I created a > qqplo

[R] Simple qqplot question

2010-06-24 Thread Ralf B
I am a beginner in R, so please don't step on me if this is too simple. I have two data sets datax and datay for which I created a qqplot qqplot(datax,datay) but now I want a line that indicates the perfect match so that I can see how much the plot diverts from the ideal. This ideal however is no