[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/11.

Is there a way in stplot to perform these operations?


Any help would be greatly appreciated

*Again congrats for the powerful and easy-to-use spacetime package with
strong documentation!*

[[alternative HTML version deleted]]

___
R-sig-Geo mailing list
R-sig-Geo@r-project.org
https://stat.ethz.ch/mailman/listinfo/r-sig-geo


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),
   scales=list(draw=F), asp="iso", xlab=NULL, ylab=NULL,
   panel = function(x,y,...) {
  sp.lines(contour);
  panel.xyplot(x,y,...)
   }
)

as stplot assumes time is irregular, it uses

xyplot(y_sref~x_sref | equal.count(time), ...

which bins time into a small number of classes.

Hth,

On 08/26/2011 02:16 PM, Mathieu Rajerison wrote:
> 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/11.
> 
> Is there a way in stplot to perform these operations?
> 
> 
> Any help would be greatly appreciated
> 
> *Again congrats for the powerful and easy-to-use spacetime package with
> strong documentation!*
> 
>   [[alternative HTML version deleted]]
> 
> ___
> R-sig-Geo mailing list
> R-sig-Geo@r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-geo

-- 
Edzer Pebesma
Institute for Geoinformatics (ifgi), University of Münster
Weseler Straße 253, 48151 Münster, Germany. Phone: +49 251
8333081, Fax: +49 251 8339763  http://ifgi.uni-muenster.de
http://www.52north.org/geostatistics  e.pebe...@wwu.de

___
R-sig-Geo mailing list
R-sig-Geo@r-project.org
https://stat.ethz.ch/mailman/listinfo/r-sig-geo


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 each plot?

Thanks


2011/8/26 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),
>   scales=list(draw=F), asp="iso", xlab=NULL, ylab=NULL,
>   panel = function(x,y,...) {
>  sp.lines(contour);
>  panel.xyplot(x,y,...)
>   }
> )
>
> as stplot assumes time is irregular, it uses
>
> xyplot(y_sref~x_sref | equal.count(time), ...
>
> which bins time into a small number of classes.
>
> Hth,
>
> On 08/26/2011 02:16 PM, Mathieu Rajerison wrote:
> > 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/11.
> >
> > Is there a way in stplot to perform these operations?
> >
> >
> > Any help would be greatly appreciated
> >
> > *Again congrats for the powerful and easy-to-use spacetime package with
> > strong documentation!*
> >
> >   [[alternative HTML version deleted]]
> >
> > ___
> > R-sig-Geo mailing list
> > R-sig-Geo@r-project.org
> > https://stat.ethz.ch/mailman/listinfo/r-sig-geo
>
> --
> Edzer Pebesma
> Institute for Geoinformatics (ifgi), University of Münster
> Weseler Straße 253, 48151 Münster, Germany. Phone: +49 251
> 8333081, Fax: +49 251 8339763  http://ifgi.uni-muenster.de
> http://www.52north.org/geostatistics  e.pebe...@wwu.de
>
> ___
> R-sig-Geo mailing list
> R-sig-Geo@r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-geo
>

[[alternative HTML version deleted]]

___
R-sig-Geo mailing list
R-sig-Geo@r-project.org
https://stat.ethz.ch/mailman/listinfo/r-sig-geo


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 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 each plot?
> 
> Thanks
> 
> 
> 2011/8/26 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),
>>   scales=list(draw=F), asp="iso", xlab=NULL, ylab=NULL,
>>   panel = function(x,y,...) {
>>  sp.lines(contour);
>>  panel.xyplot(x,y,...)
>>   }
>> )
>>
>> as stplot assumes time is irregular, it uses
>>
>> xyplot(y_sref~x_sref | equal.count(time), ...
>>
>> which bins time into a small number of classes.
>>
>> Hth,
>>
>> On 08/26/2011 02:16 PM, Mathieu Rajerison wrote:
>>> 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/11.
>>>
>>> Is there a way in stplot to perform these operations?
>>>
>>>
>>> Any help would be greatly appreciated
>>>
>>> *Again congrats for the powerful and easy-to-use spacetime package with
>>> strong documentation!*
>>>
>>>   [[alternative HTML version deleted]]
>>>
>>> ___
>>> R-sig-Geo mailing list
>>> R-sig-Geo@r-project.org
>>> https://stat.ethz.ch/mailman/listinfo/r-sig-geo
>>
>> --
>> Edzer Pebesma
>> Institute for Geoinformatics (ifgi), University of Münster
>> Weseler Straße 253, 48151 Münster, Germany. Phone: +49 251
>> 8333081, Fax: +49 251 8339763  http://ifgi.uni-muenster.de
>> http://www.52north.org/geostatistics  e.pebe...@wwu.de
>>
>> ___
>> R-sig-Geo mailing list
>> R-sig-Geo@r-project.org
>> https://stat.ethz.ch/mailman/listinfo/r-sig-geo
>>
> 
>   [[alternative HTML version deleted]]
> 
> 
> 
> 
> ___
> R-sig-Geo mailing list
> R-sig-Geo@r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-geo

-- 
Edzer Pebesma
Institute for Geoinformatics (ifgi), University of Münster
Weseler Straße 253, 48151 Münster, Germany. Phone: +49 251
8333081, Fax: +49 251 8339763  http://ifgi.uni-muenster.de
http://www.52north.org/geostatistics  e.pebe...@wwu.de

___
R-sig-Geo mailing list
R-sig-Geo@r-project.org
https://stat.ethz.ch/mailman/listinfo/r-sig-geo


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 Rajerison wrote:
> > 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 each plot?
> >
> > Thanks
> >
> >
> > 2011/8/26 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),
> >>   scales=list(draw=F), asp="iso", xlab=NULL, ylab=NULL,
> >>   panel = function(x,y,...) {
> >>  sp.lines(contour);
> >>  panel.xyplot(x,y,...)
> >>   }
> >> )
> >>
> >> as stplot assumes time is irregular, it uses
> >>
> >> xyplot(y_sref~x_sref | equal.count(time), ...
> >>
> >> which bins time into a small number of classes.
> >>
> >> Hth,
> >>
> >> On 08/26/2011 02:16 PM, Mathieu Rajerison wrote:
> >>> 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/11.
> >>>
> >>> Is there a way in stplot to perform these operations?
> >>>
> >>>
> >>> Any help would be greatly appreciated
> >>>
> >>> *Again congrats for the powerful and easy-to-use spacetime package with
> >>> strong documentation!*
> >>>
> >>>   [[alternative HTML version deleted]]
> >>>
> >>> ___
> >>> R-sig-Geo mailing list
> >>> R-sig-Geo@r-project.org
> >>> https://stat.ethz.ch/mailman/listinfo/r-sig-geo
> >>
> >> --
> >> Edzer Pebesma
> >> Institute for Geoinformatics (ifgi), University of Münster
> >> Weseler Straße 253, 48151 Münster, Germany. Phone: +49 251
> >> 8333081, Fax: +49 251 8339763  http://ifgi.uni-muenster.de
> >> http://www.52north.org/geostatistics  e.pebe...@wwu.de
> >>
> >> ___
> >> R-sig-Geo mailing list
> >> R-sig-Geo@r-project.org
> >> https://stat.ethz.ch/mailman/listinfo/r-sig-geo
> >>
> >
> >   [[alternative HTML version deleted]]
> >
> >
> >
> >
> > ___
> > R-sig-Geo mailing list
> > R-sig-Geo@r-project.org
> > https://stat.ethz.ch/mailman/listinfo/r-sig-geo
>
> --
> Edzer Pebesma
> Institute for Geoinformatics (ifgi), University of Münster
> Weseler Straße 253, 48151 Münster, Germany. Phone: +49 251
> 8333081, Fax: +49 251 8339763  http://ifgi.uni-muenster.de
> http://www.52north.org/geostatistics  e.pebe...@wwu.de
>
> ___
> R-sig-Geo mailing list
> R-sig-Geo@r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-geo
>

[[alternative HTML version deleted]]

___
R-sig-Geo mailing list
R-sig-Geo@r-project.org
https://stat.ethz.ch/mailman/listinfo/r-sig-geo