[R-sig-Geo] stplot: choosing constant time interval between plots

2011-08-26 Thread Mathieu Rajerison
Hi, I have a question about stplot. Let's say I'd like to plot via multi-panel a series of plots separated by a given time interval. How can I accomplish that? Also, let's say this time interval is specified between thow given time instances, for example: every week between 14/07/11 and 28/08/1

Re: [R-sig-Geo] stplot: choosing constant time interval between plots

2011-08-26 Thread Edzer Pebesma
Mathieu, as stplot for STIDF's is still pretty "bare", or simple, you might as well work directly with xyplot from lattice. Having your data, it turns out you only have a limited number of dates, the following seems to work: library(lattice) xyplot(y_sref~x_sref|time, as.data.frame(ciotat.t),

Re: [R-sig-Geo] stplot: choosing constant time interval between plots

2011-08-29 Thread Mathieu Rajerison
Ok, May I ask you another question? When I use parameter number for stplot, how does it decide to split plots by number? The orange mark on the top of each plot shows me that it isn't by equal time intervals. I guess it is by equal object count? Is there a way to indicate time periods on top of

Re: [R-sig-Geo] stplot: choosing constant time interval between plots

2011-08-29 Thread Edzer Pebesma
Mathieu, you may want to look into cut methods for Date, e.g. in your example: xyplot(y_sref~x_sref|cut(time,4), as.data.frame(ciotat.t)) On 08/29/2011 10:31 AM, Mathieu Rajerison wrote: > Ok, > > May I ask you another question? > > When I use parameter number for stplot, how does it decide

Re: [R-sig-Geo] stplot: choosing constant time interval between plots

2011-08-31 Thread Mathieu Rajerison
Edzer, Thanks a lot for all the advice. I'll look after it. best, mathieu 2011/8/29 Edzer Pebesma > Mathieu, > > you may want to look into cut methods for Date, e.g. in your example: > > xyplot(y_sref~x_sref|cut(time,4), as.data.frame(ciotat.t)) > > > > On 08/29/2011 10:31 AM, Mathieu Rajeris