Last chance! 50% off unlimited learning
Sale ends in
Prints a useful summary of a function of spatial location.
# S3 method for distfun
summary(object, …) # S3 method for funxy
summary(object, …)
An object of class "distfun"
or "funxy"
representing a function of spatial coordinates.
Arguments passed to as.mask
controlling the
pixel resolution used to compute the summary.
For summary.funxy
the result is
an object of class "summary.funxy"
.
For summary.distfun
the result is
an object of class "summary.distfun"
.
There are print
methods for these classes.
These are the summary
methods
for the classes "funxy"
and "distfun"
.
An object of class "funxy"
represents a function
of spatial location, defined in a particular region of space.
This includes objects of the special class "distfun"
which represent
distance functions.
The summary
method computes a summary of the function values.
The function is evaluated on a grid of locations using
as.im
and numerical values at these locations
are summarised using summary.im
. The pixel resolution
for the grid of locations is determined by the arguments
…
which are passed to as.mask
.
# NOT RUN {
f <- function(x,y) { x^2 + y^2 - 1}
g <- funxy(f, square(2))
summary(g)
summary(distfun(cells))
summary(distfun(cells), dimyx=256)
# }
Run the code above in your browser using DataLab