Skip to content
Prev 10348 / 29559 Next

Spatial interpolation possibilities

On 12/03/2010 03:38 PM, Arnaud Mosnier wrote:
Hi Arnaud,

Spline is possible, look at the Tps function from the fields package. 
I'm not sure on Natural Neighbor, but voronoi tessalations are available 
in R.
You could split up the dataset in two regions and interpolate them 
seperately.

Finally, if you want to cross-validate, look at the compare.cv function 
from the automap package. It provides statistics and some spatial plots 
of the cross-validation residuals which I found very useful (I wrote 
them myself ;)). When cross-validating non-gstat interpolations you need 
to make sure that the output of the cross-validation is compatible (i.e. 
a SpatialPointsDataFrame with a few specific attributes). I have an 
example of how to do this with Tps, which can serve as inspiration. If 
you are interested I can send the code off list.

Paul