Description Usage Arguments Value See Also Examples
Method interpolate
interpolate SField data
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | ## S4 method for signature 'formula,SField,SField'
interpolate(formula, data, newdata, ...)
## S4 method for signature 'formula,SField,missing'
interpolate(formula, data, ...,
ncells = 5000)
## S4 method for signature 'formula,SField,SLattice'
interpolate(formula, data, newdata, ...,
ncells = 5000)
## S4 method for signature 'formula,SLattice,SField'
interpolate(formula, data, newdata, model,
...)
## S4 method for signature 'formula,SLattice,SLattice'
interpolate(formula, data, newdata, model,
...)
## S4 method for signature 'formula,SObjects,ANY'
interpolate(formula, data, newdata, ...)
|
formula |
specifing which variable should be interpolated, see also krige |
data |
object of class SField-class |
newdata |
target locations; if missing, points are chosen from the domain of |
... |
passed on to krige |
ncells |
in case no newdata is provided and point support interpolations are computed over a polygon area, the approximate number of grid cells (default 5000) |
model |
covariance model, see krige and vgm |
object of class SField-class
krige
1 2 3 4 5 6 7 8 | library(sp)
demo(meuse, ask = FALSE, echo = FALSE)
sf = SField(meuse, SExtent(meuse.grid))
p = interpolate(zinc~1, sf)
spplot(p)
sf = SField(meuse, SExtent(meuse.area))
p = interpolate(zinc~1, sf)
spplot(p)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.