funxy

0th

Percentile

Spatial Function Class

A simple class of functions of spatial location

Keywords
spatial, math
Usage
funxy(f, W)
Arguments
f
A function in the Rlanguage with arguments x,y (at least)
W
Window (object of class "owin") inside which the function is well-defined.
Details

This creates an object of class "funxy". This is a simple mechanism for handling a function of spatial location $f(x,y)$ to make it easier to display and manipulate.

f should be a function in the Rlanguage. The first two arguments of f must be named x and y respectively.

W should be a window (object of class "owin") inside which the function f is well-defined.

The function f should be vectorised: that is, if x and y are numeric vectors of the same length n, then v <- f(x,y) should be a vector of length n.

Value

  • A function, in fact a copy of f, which also belongs to the class "funxy". This class has methods for print, plot, contour and persp.

See Also

plot.funxy

Aliases
  • funxy
Examples
f <- function(x,y) { x^2 + y^2 - 1} 
   g <- funxy(f, square(2))
   g(0.2, 0.3)
   g
Documentation reproduced from package spatstat, version 1.36-0, License: GPL (>= 2)

Community examples

Looks like there are no examples yet.