[R-sig-Geo] stplot: choosing constant time interval between plots
Edzer Pebesma
edzer.pebesma at uni-muenster.de
Fri Aug 26 19:55:35 CEST 2011
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 at 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.pebesma at wwu.de
More information about the R-sig-Geo
mailing list