Re: [R-sig-Geo] transforming a 3d SpatialGridDataFrame into a mesh of some kind

2009-12-09 Thread Mark Connolly
I _think_ raster may be solving a different problem. I am looking for a voxel-type raster. Let me know if I am wrong. plot3d(raster(kriged_sp)) Error in as.double(x) : cannot coerce type 'S4' to vector of type 'double' Let me describe the SpatialGridDataFrame a bit better. The coordinates

Re: [R-sig-Geo] transforming a 3d SpatialGridDataFrame into a mesh of some kind

2009-12-09 Thread Robert J. Hijmans
Mark, If spgdf is a SpatialGridDataFrame object # install.packages("raster", repos="http://R-Forge.R-project.org";) library(raster) plot3D(raster(spgdf)) Or you can have a look at the code: getMethod("plot3D", 'RasterLayer') Robert On Wed, Dec 9, 2009 at 5:10 AM, Mark Connolly wrote: > I have

[R-sig-Geo] transforming a 3d SpatialGridDataFrame into a mesh of some kind

2009-12-09 Thread Mark Connolly
I have a 3d SpatialGridDataFrame I created using krige (IDW). I am using rgl facilities to create an interactive plot of the points, but I'd really like to have something more volumetric than points. My copy of the truly wonderful Applied Spatial Data Analysis with R (shameless pander) is pre