Re: [R] Fit lines in intxplot

2012-06-01 Thread arun
Hi Peter, Thanks for the help.  It is exactly what I wanted. Sorry, I forgot to post the library name. A.K. - Original Message - From: Peter Ehlers To: arun Cc: R help Sent: Friday, June 1, 2012 7:32 AM Subject: Re: [R] Fit lines in intxplot On 2012-05-31 21:41, arun wrote: > D

Re: [R] Fit lines in intxplot

2012-06-01 Thread Peter Ehlers
On 2012-05-31 21:41, arun wrote: Dear R help, I tried to add linear fit lines in intxplot by adding "index.cond = function(x,y) coef(lm(y ~ x))[1]" inside the intxplot(). It didn't help. I would appreciate any help. My dataset and codes are pasted below. Thanks, A.K. datGreen<- read.table

[R] Fit lines in intxplot

2012-05-31 Thread arun
Dear R help, I tried to add linear fit lines in intxplot by adding "index.cond = function(x,y) coef(lm(y ~ x))[1]" inside the intxplot().  It didn't help.  I would appreciate any help. My dataset and codes are pasted below. Thanks, A.K. datGreen<- read.table(text=" Time,    DarkSt,    LightSt