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

Robert J. Hijmans r.hijmans at gmail.com
Wed Dec 9 18:20:34 CET 2009


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 <mark_connolly at acm.org> wrote:
> 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 pretty
> mute on 3d.  Any hints on where I might find something on transforming the
> points into a mesh?  Something I need to code for myself?
>
> _______________________________________________
> R-sig-Geo mailing list
> R-sig-Geo at stat.math.ethz.ch
> https://stat.ethz.ch/mailman/listinfo/r-sig-geo
>



More information about the R-sig-Geo mailing list