Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

findmax

Find Local Maxima on a Map of Class 'SpatialPixelsDataFrame'


Description

findmax finds the local maxima on a map of class SpatialPixelsDataFrame.

Usage

findmax(x)

Arguments

x

a map of class SpatialPixelsDataFrame with one column

Details

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

Value

an object of class SpatialPoints containing the x and y coordinates of the local maxima.

Author(s)

Clement Calenge clement.calenge@ofb.gouv.fr

See Also

SpatialPixelsDataFrame-class for additionnal information on objects of class SpatialPixelsDataFrame.

Examples

data(puechabonsp)

## estimates the UD
kud <- kernelUD(puechabonsp$relocs[,1])

## displays the maximum
image(kud[[1]])
points(findmax(kud[[1]]))

adehabitatHR

Home Range Estimation

v0.4.19
GPL (>= 2)
Authors
Clement Calenge, contributions from Scott Fortmann-Roe
Initial release
2021-01-09

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.