Farthest Distance to Boundary of Window
Computes the farthest distance from each pixel, or each data point, to the boundary of the window.
## S3 method for class 'owin': fardist(X, \dots, squared=FALSE)
## S3 method for class 'ppp': fardist(X, \dots, squared=FALSE)
- A spatial object such as a window or point pattern.
- Arguments passed to
as.maskto determine the pixel resolution, if required.
- Logical. If
TRUE, the squared distances will be returned.
fardist is generic, with methods for
For a window
W, the command
returns a pixel image in which the value at each pixel
is the largest distance from that pixel to the boundary of
For a point pattern
X, with window
fardist(X) returns a numeric vector
with one entry for each point of
X, giving the
largest distance from that data point to the boundary of
fardist.owin, a pixel image (object of class
fardist.ppp, a numeric vector.
fardist(cells) plot(FR <- fardist(letterR))