[R-sig-Geo] spacetime::stplot: problem overlaying a SpatialLines object over a STIDF points map

Edzer Pebesma edzer.pebesma at uni-muenster.de
Thu Aug 25 12:35:17 CEST 2011


Hi Mathieu,

the idea behind stplot is indeed that it should be as easy as spplot,
hence its name. This idea is however much easier than practice, as the
number of possible (and useful) plots for S/T data might be quite large.

I would be helpful if you could provide (or generate) a simple data set
of your type (STIDF), explain what it represents, and tell how you'd
want it to be plotted. Does stplot(ciotat.t) give what you want, i.e. is
passing the sp.layout the only problem?

Best regards,
--
Edzer


On 08/25/2011 10:12 AM, Mathieu Rajerison wrote:
> Hi,
> 
> 
> I have a STIDF points object named ciotat.t that I've tried to plot with a
> city contour named contour.
> 
> I tried this but it doesn't work:
>> stplot(ciotat.t, sp.layout= list("sp.lines", contour))
> 
> Also, this doesn't work:
>> stplot(ciotat.t, panel=function(...) {
>    sp.lines(contour)
>    panel.pointsplot(...)
>  })
> 
> I thought it was as easy as with spplot.The documentation tells that
> arguments are passed on to spplot in case of stplot.STFDF, and to xyplot in
> case of
> stplot.STIDF. So, the method may be a little different in my case (STIDF)?
> 
> Any help would be appreciated,
> 
> Mathieu
> 
> 	[[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