Re: [R] Help with lattice panel function

2015-04-29 Thread Duncan Mackay
From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of Naresh Gurbuxani Sent: Wednesday, 29 April 2015 22:16 To: Brandstätter Christian Cc: r-help@R-project.org Subject: Re: [R] Help with lattice panel function Thanks for your lightening fast response. This solution works. Sent from my iPh

Re: [R] Help with lattice panel function

2015-04-29 Thread Naresh Gurbuxani
Thanks for your lightening fast response. This solution works. Sent from my iPhone > On Apr 29, 2015, at 7:27 AM, Brandstätter Christian > wrote: > > This worked for me. It is btw. quite confusing to name your y-variable x. > I think part of the problem arised from the date format. > > xyp

Re: [R] Help with lattice panel function

2015-04-29 Thread Brandstätter Christian
This worked for me. It is btw. quite confusing to name your y-variable x. I think part of the problem arised from the date format. xyplot(x + max.x ~ date, data = my.newdf, ylab = "x", panel = function(x, y, x2, ...){ panel.xyplot(x, y, type = "l") panel.loess(as.numeric(m