Interpolation of bivariate data

interpolate(x, y, z, ...)

Arguments

x

x input

y

y input

z

z input

...

Additional arguments

xout

x output

yout

y output

method

The method

extrap

Do you want to extrapolate outside the convex-hull of your data?

control

Control arguments

Value

A list

Examples

data(volcano)
x = seq(from=0, to=1, length.out = nrow(volcano))
y = seq(from=0, to=1, length.out = ncol(volcano))
xout = seq(from=0, to=1, length.out = 3*nrow(volcano))
yout = seq(from=0, to=1, length.out = 3*ncol(volcano))
zout = interpolate(x, y, volcano, xout, yout)
#> Warning: collinear points, trying to add some jitter to avoid collinearities!
#> Warning: success: collinearities reduced through jitter