"as.function"(x,...,values=NULL)
"tess"
).
x
.
"funxy"
.
"tess"
) to a function(x,y)
where the arguments x
and y
are (vectors of) spatial
coordinates. The corresponding function values are factor levels
identifying which tile of the tessellation contains each point.
Values are NA
if the corresponding point lies outside the
tessellation. If the argument values
is given, then it determines the value
of the function in each tile of x
.
tileindex
for the low-level calculation of tile index. cut.ppp
and split.ppp
to
divide up the points of a point pattern according to
a tessellation.
X <- runifpoint(7)
V <- dirichlet(X)
f <- as.function(V)
f(0.1, 0.4)
plot(f)
Run the code above in your browser using DataLab