Learn R Programming

adehabitat (version 1.8.20)

findmaxasc: Find Local Maxima on a Map of Class 'asc'

Description

findmaxasc finds the local maxima on a map of class asc.

Usage

findmaxasc(asc)

Arguments

asc

a map of class asc

Value

a data frame with two columns containing the x and y coordinates of the local maxima.

Details

This function may be useful, among other things, to identify the local modes of the utilization distribution of an animal (e.g. estimated using kernelUD).

See Also

as.asc, kernelUD

Examples

Run this code
# NOT RUN {
## example, to find the mode of the utilization distribution (UD) of an
## animal:

## load the data
data(puechabon)
loc <- puechabon$locs[, c("X", "Y")]
id <- puechabon$locs[, "Name"]

## Estimation of UD for the four animals
(ud <- kernelUD(loc, id))
image(ud)


## Now consider the UD of Chou
map <- ud$Chou$UD
image(map)

## Find the local maxima:
maxim <- findmaxasc(map)
points(maxim, col="red", pch=16, cex=1.5)



# }

Run the code above in your browser using DataLab