Re: [R] xyplot: superpose 2 time series with different time intervals

2009-08-03 Thread Gary Lewis
Thank you Deepayan. Your suggestion worked perfectly. Thanks too to Gabor for your suggestion and for your help trying to get this help request through to r-help before I subscribed. I'm all set now. Gary On Sat, Aug 1, 2009 at 1:17 PM, Deepayan Sarkar wrote: > On Sat, Aug 1, 2009 at 7:26 AM,

Re: [R] xyplot: superpose 2 time series with different time intervals

2009-08-01 Thread Deepayan Sarkar
On Sat, Aug 1, 2009 at 7:26 AM, Gary Lewis wrote: > I could use some advice regarding xyplot. > > I've got 2 time series. Both cover approximately the same period of > time (ie, 1940 to 2009). But one series has annual data and the other > has monthly data. One refers to university enrollment; the

Re: [R] xyplot: superpose 2 time series with different time intervals

2009-08-01 Thread Gabor Grothendieck
In the last statement you can replace plot with xyplot (although both work). On Sat, Aug 1, 2009 at 10:37 AM, Gabor Grothendieck wrote: > Try this using the same ts.sim and ts.sim2 from my previous post. > https://stat.ethz.ch/pipermail/r-help/2009-August/206697.html > > library(zoo) > library(lat

Re: [R] xyplot: superpose 2 time series with different time intervals

2009-08-01 Thread Gabor Grothendieck
Try this using the same ts.sim and ts.sim2 from my previous post. https://stat.ethz.ch/pipermail/r-help/2009-August/206697.html library(zoo) library(lattice) plot(na.approx(cbind(as.zoo(ts.sim), as.zoo(ts.sim2))), screen = 1, col = c("black", grey(0.5))) On Sat, Aug 1, 2009 at 10:26 AM,

[R] xyplot: superpose 2 time series with different time intervals

2009-08-01 Thread Gary Lewis
I could use some advice regarding xyplot. I've got 2 time series. Both cover approximately the same period of time (ie, 1940 to 2009). But one series has annual data and the other has monthly data. One refers to university enrollment; the other to unemployment rates. Both are currently in the same