kriging | R Documentation |
Ordinary kriging interpolation of spatial
data. Implements a simple version of ordinary kriging that uses
all the data in a training set to predict the z-value of some
test data, using a semivariogram model generated by the
semivariogram
function.
kriging(x, y, z, xi, yi, svm, grid = FALSE, err = FALSE)
x |
numerical vector of training data |
y |
numerical vector of the same length as |
z |
numerical vector of the same length as |
xi |
scalar or vector with the |
yi |
scalar or vector with the |
svm |
output of the |
grid |
logical. If |
err |
logical. If |
either a vector (if grid=FALSE
) or a matrix (if
grid=TRUE
) of kriging interpolations. In the latter
case, values that are more than 10% out of the data range are
given NA
values.
data(meuse,package='geostats') x <- meuse$x y <- meuse$y z <- log(meuse$cadmium) svm <- semivariogram(x=x,y=y,z=z) kriging(x=x,y=y,z=z,xi=179850,yi=331650,svm=svm,grid=TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.