Re: [R] How to use your own data in gstat and sp?

2009-08-18 Thread Paul Heinrich Dietrich
Thanks that makes sense. Just a newby to spatial data in R. Thanks. Roger Bivand wrote: > > First re-read the definition of what a SpatialPixels object is - > ?"SpatialPixels-class" - note that it says: "class for defining a pixels, > forming a possibly incomplete rectangular grid of arbitrar

Re: [R] How to use your own data in gstat and sp?

2009-08-17 Thread Roger Bivand
First re-read the definition of what a SpatialPixels object is - ?"SpatialPixels-class" - note that it says: "class for defining a pixels, forming a possibly incomplete rectangular grid of arbitrary dimension". When you try to coerce a SpatialPointsDataFrame to a SpatialPixelsDataFrame, it is chec

[R] How to use your own data in gstat and sp?

2009-08-16 Thread Paul Heinrich Dietrich
This seems pretty basic, but I can't get any data to work except for the documented examples. When the goal is to get to SpatialPixels, here is what I see... > x <- runif(10,1,10) > y <- runif(10,1,10) > z <- rnorm(10,0,1) > MyData <- as.data.frame(cbind(x,y,z)) > library(gstat) > coordinates(My