Re: [R-sig-Geo] reading postgis tables in R

2015-09-02 Thread Frede Aakmann Tøgersen
Hi Your code seem to be garbled especially for the definition of the SGeomdf function: SGeomdf <- paste0("Spatial", geom1, "DataFrame")(paste0("Spatial", geom1)(unlist(lapply(coords, function(x) paste0("x@", geom2))),

Re: [R-sig-Geo] sp and latticeExtra: add colorbar for layer drawn 'under'

2015-09-02 Thread Edzer Pebesma
On 09/02/2015 03:07 PM, Ben Tupper wrote: > I can see in the source code, spplot.R, that SpatialPolygonsDataFrame and > SpatialLinesDataFrame are handled by levelplot; thanks for pointing that out. > That SpatialPointsDataFrame is handled by xyplot gives me pause now. In > fact, if I think

Re: [R-sig-Geo] Looking for an R package for focal statistics, (moving window) within a 3D neighborhood

2015-09-02 Thread Gareth Davies
Hi Jose, If you end up writing your own function for this sort of thing, I'd advise you consider whether data.frames are the right data structure to use -- since they have a very high speed penalty for row-wise operations like what you are talking about. If all your attributes are of the same

Re: [R-sig-Geo] sp and latticeExtra: add colorbar for layer drawn 'under'

2015-09-02 Thread Ben Tupper
Hi, On Aug 30, 2015, at 6:37 AM, Edzer Pebesma wrote: > On 08/29/2015 10:55 AM, Tim Appelhans wrote: >> >> I am not sure why SpatialPolygons* objects get rendered via levelplot. > > because levelplot has the understanding of plotting something in 2D, > using