Re: [R-sig-Geo] selection of data subsets in spatial classes

2006-06-09 Thread Roger Bivand
Karl, When you reduce the cell sizes, are you increasing the cell dims proportionally, otherwise you will get what you are saying? Roger On Fri, 9 Jun 2006, Edzer J. Pebesma wrote: > Karl, I cannot reproduce your problem: > > library(sp) > grd <- GridTopology(c(617400, 6190060), c(.5,.5), c(

Re: [R-sig-Geo] selection of data subsets in spatial classes

2006-06-09 Thread Edzer J. Pebesma
Karl, I cannot reproduce your problem: library(sp) grd <- GridTopology(c(617400, 6190060), c(.5,.5), c(400, 300)) grdx = SpatialGridDataFrame(grd, data = data.frame(z= 1:12)) spplot(grdx, col.regions=bpy.colors()) shows exactly what I expected. -- Edzer [EMAIL PROTECTED] wrote: > Yes, the gr

Re: [R-sig-Geo] selection of data subsets in spatial classes

2006-06-09 Thread karl . sommer
Yes, the grid coordinates reflect the c(0,5, 0,5) [1,] 617400.0 6190061.0 [2,] 617400.5 6190061.0 [3,] 617401.0 6190061.0 [4,] 617401.5 6190061.0 [5,] 617400.0 6190060.5 [6,] 617400.5 6190060.5 But for some reason, when using the smaller cellsize my spplot of the interpolated field all of

Re: [R-sig-Geo] selection of data subsets in spatial classes

2006-06-09 Thread Roger Bivand
On Fri, 9 Jun 2006 [EMAIL PROTECTED] wrote: > > after some fiddling with the GridTopology() method I eventually succeeded > in making it work and now can interpolate onto the grid. > > Tremendous, thanks. Good > > One problem I encountered when specifying a number smaller than 1 for the > cel

Re: [R-sig-Geo] selection of data subsets in spatial classes

2006-06-09 Thread karl . sommer
after some fiddling with the GridTopology() method I eventually succeeded in making it work and now can interpolate onto the grid. Tremendous, thanks. One problem I encountered when specifying a number smaller than 1 for the cellsize argument eg. c(0.5, 0.5) instead of c(1,1), I get erroneous r