If style="image"
, a pixel image (object of class "im"
)
containing the distances from each pixel in the image raster
to the boundary of the window.
If style="matrix"
,
a matrix giving the distances.
Rows of this matrix correspond to
the \(y\) coordinate and columns to the \(x\) coordinate.
If style="coords"
, a list with three components
x,y,z
, where x,y
are vectors of length \(m,n\)
giving the \(x\) and \(y\) coordinates respectively,
and z
is an \(m \times n\) matrix such that
z[i,j]
is the distance from (x[i],y[j])
to the
boundary of the window. Rows of this matrix correspond to the
\(x\) coordinate and columns to the \(y\) coordinate.
This result can be plotted with persp
, image
or contour
.