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
>> >> >> Substitute panel.smooth with panel.regression in your pairs.panel() >> function and you have it. >> >> >> >> Yours sincerely / Med venlig hilsen >> >> >> Frede Aakmann Tøgersen >> Specialist, M.Sc., Ph.D. >> Plant

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
ase refer to www.vestas.com/legal/notice > If you have received this e-mail in error please contact the sender. > > > -Original Message- > > From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] > > On Behalf Of Shane Carey > > Sent: 25

Re: [R] Linear line on pairs plot

2014-04-25 Thread Frede Aakmann Tøgersen
On Behalf Of Shane Carey > Sent: 25. april 2014 12:26 > To: r-help@r-project.org > Subject: [R] Linear line on pairs plot > > Hi, > > Im trying to plot a linear line on the scatter plot using the pairs() > function. At the moment the line is non linear. However, I want a l

[R] Linear line on pairs plot

2014-04-25 Thread Shane Carey
Hi, Im trying to plot a linear line on the scatter plot using the pairs() function. At the moment the line is non linear. However, I want a linear line and the associated R value. Here is my current code: panel.cor.scale <- function(x, y, digits=2, prefix="", cex.cor) { usr <- par("usr"); on.e