Re: [R] Linear line on pairs plot

2014-04-25 Thread Shane Carey
s.com >>> http://www.vestas.com >>> >>> Company reg. name: Vestas Wind Systems A/S >>> This e-mail is subject to our e-mail disclaimer statement. >>> Please refer to www.vestas.com/legal/notice >>> If you have received this e-mail in error ple

Re: [R] Linear line on pairs plot

2014-04-25 Thread Shane Carey
tas.com >> >> Company reg. name: Vestas Wind Systems A/S >> This e-mail is subject to our e-mail disclaimer statement. >> Please refer to www.vestas.com/legal/notice >> If you have received this e-mail in error please contact the sender. >> >> >> &

Re: [R] Linear line on pairs plot

2014-04-25 Thread Shane Carey
rror please contact the sender. > > > > *From:* Shane Carey [mailto:careys...@gmail.com] > *Sent:* 25. april 2014 13:14 > *To:* Frede Aakmann Tøgersen > *Cc:* r-help@r-project.org > *Subject:* Re: [R] Linear line on pairs plot > > > > Great, thanks Frede, > > &

Re: [R] Linear line on pairs plot

2014-04-25 Thread Frede Aakmann Tøgersen
om/legal/notice> If you have received this e-mail in error please contact the sender. From: Shane Carey [mailto:careys...@gmail.com] Sent: 25. april 2014 13:14 To: Frede Aakmann Tøgersen Cc: r-help@r-project.org Subject: Re: [R] Linear line on pairs plot Great, thanks Frede, This works p

Re: [R] Linear line on pairs plot

2014-04-25 Thread Shane Carey
Great, thanks Frede, This works perfectly. Ive tested these correlations with ones in sigma plot and excel and for some reason the r squared value is different. Any idea why this is? Thanks again for your help. Cheers On Fri, Apr 25, 2014 at 11:57 AM, Frede Aakmann Tøgersen wrote: > Hi > > Ha

Re: [R] Linear line on pairs plot

2014-04-25 Thread Frede Aakmann Tøgersen
Hi Have a look on how panel.smooth is defined: panel.smooth function (x, y, col = par("col"), bg = NA, pch = par("pch"), cex = 1, col.smooth = "red", span = 2/3, iter = 3, ...) { points(x, y, pch = pch, col = col, bg = bg, cex = cex) ok <- is.finite(x) & is.finite(y) if (any(ok)