Skip to content

spacetime::stplot: problem overlaying a SpatialLines object over a STIDF points map

5 messages · Edzer Pebesma, Mathieu Rajerison

#
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:

  
    
#
Thanks; for your case, with current spacetime,

stplot(ciotat.t, panel=function(x,y,...) {
   panel.xyplot(x,y,...)
   sp.lines(contour)
 }
)

might do what you need; I'll look into having sp.layout work the same
way as it does in spplot, for stplot'ing STIDF objects.

Best wishes,
On 08/25/2011 01:28 PM, Mathieu Rajerison wrote: