adehabitat (version 1.8.20)

distfacmap: Compute distances to the different levels of a factor map

Description

This function computes map of distances to patches belonging to the different levels of a map of class asc and of type factor.

Usage

distfacmap(x)

Arguments

x

an object of class asc and of type factor

Value

An object of class kasc.

See Also

asc for further info on objects of class asc. To compute distance maps from points, lines or polygons, see distmap in the package spatstat.

Examples

Run this code
# NOT RUN {
data(puechabon)
asp <- getkasc(puechabon$kasc, "Aspect")
image(asp)
sor <- distfacmap(asp)
image(sor)
# }

Run the code above in your browser using DataLab