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
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,
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
3 matches
Mail list logo