interpolate: Method interpolate

Description Usage Arguments Value See Also Examples

Description

Method interpolate

interpolate SField data

Usage

 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, ...)

Arguments

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 data

...

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

Value

object of class SField-class

See Also

krige

Examples

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)

edzer/mss documentation built on May 15, 2019, 11:08 p.m.