Re: [R] kriging shapefiles

2011-10-06 Thread Paul Hiemstra
On 10/05/2011 09:07 AM, Leynnard Rey Matillano wrote: > Hi! Im new to R and I need to interpolate a shapefile using kriging. I've > been able to plot/read the shapefile using the package maptools or rgdal. > I've searched the internet for sample codes but most of the kriging codes > that I've fo

Re: [R] kriging shapefiles

2011-10-05 Thread Michael Sumner
It is perhaps easier than you think, see the example in gstat: library(gstat) ?krige After this is run "meuse" is a SpatialPointsDataFrame: coordinates(meuse) = ~x+y Any point shapefile read with readOGR from rgdal (or the alternative functions in maptools) will also be SpatialPointsDataFrames,

[R] kriging shapefiles

2011-10-05 Thread Leynnard Rey Matillano
Hi! Im new to R and I need to interpolate a shapefile using kriging. I've been able to plot/read the shapefile using the package maptools or rgdal. I've searched the internet for sample codes but most of the kriging codes that I've found done in R is done using txtfiles or CSVs.  An example coul