kernelUD {adehabitat} | R Documentation |
kernelUD
is used to estimate the utilization distribution (UD)
of animals monitored by radio-tracking.
getvolumeUD
and kernel.area
provide utilities
for home-range size estimation.
getverticeshr
stores the
home range contour as objects of class area
in a list, with one
component per animal.
kernelUD(xy, id = NULL, h = "href", grid = 40, same4all = FALSE, hlim = c(0.1, 1.5)) print.khr(x, ...) image.khr(x, axes = FALSE, mar = c(0,0,2,0), addcontour = TRUE, addpoints = TRUE, ...) plotLSCV(x) getvolumeUD(x) kernel.area(xy, id, h = "href", grid=40, same4all = FALSE, hlim = c(0.1,1.5), levels = seq(20,95, by = 5), unin = c("m", "km"), unout = c("ha", "km2", "m2")) getverticeshr(x, lev = 95)
xy |
a data frame with two columns (x and y coordinates of the animal relocations) |
id |
an optional factor giving the animals identity associated to
xy |
h |
a character string or a number. If h is set to
"href" , the ad hoc method is used for the smoothing parameter
(see details). If h is set to
"LSCV" , the least-square cross validation method is used.
Alternatively, h may be set to any given numeric value |
grid |
a number giving the size of the grid on
which the UD should be estimated. Alternatively, this parameter may
be an object of class asc (see examples) |
same4all |
logical. If TRUE , the same grid
is used for all animals. If FALSE , one grid per
animal is used |
hlim |
a numeric vector of length two. If h = "LSCV" ,
the function minimizes the cross-validation criterion for values of
h ranging from hlim[1]*href to hlim[2]*href , where
href is the smoothing parameter computed with the ad hoc
method (see below) |
x |
an object of class khr returned by kernelUD |
axes |
logical. Whether the axes are to be plotted |
mar |
the margin parameter (see help(par) ) |
addcontour |
logical. if TRUE , contours are drawn on the
graphics |
addpoints |
logical. if TRUE , the animal relocations are
drawn on the graphics |
levels |
a vector of percentage levels for home-range size estimation |
unin |
the units of the relocations coordinates. Either "m" for
meters (default) or "km" for kilometers |
unout |
the units of the output areas. Either "m2" for
square meters, "km2" for square kilometers or "ha" for
hectares (default) |
lev |
the percentage level for home range contour estimation. |
... |
additionnal parameters to be passed to the generic
functions print and image |
The Utilization Distribution (UD) is the bivariate function giving the
probability density that an animal is found at a point according to
its geographical coordinates. Using this model, one can define
the home range as the minimum area in which an animal has some
specified probability of being located. The
functions used here correspond to the approach described in Worton
(1995).
The kernel method has been recommended by many authors for the estimation of the utilization distribution (e.g. Worton, 1989, 1995). The default method for the estimation of the smoothing parameter is the ad hoc method, i.e.
h = Sigma*n^(-1/6)
where
Sigma = 0.5*(sd(x)+sd(y))
which supposes that the UD is
bivariate normal. Alternatively, the smoothing parameter h may be
computed by Least Square Cross Validation (LSCV). The estimated value
then minimizes the Mean Integrated Square Error (MISE), i.e. the
difference in volume between the true UD and the estimated UD. Note
that the cross-validation criterion cannot be minimized in some
cases. According to Seaman and Powell (1998) "This is a difficult
problem that has not been worked out by statistical
theoreticians, so no definitive response is available at this
time" (see Seaman and Powell, 1998 for further details and tricky
solutions). plotLSCV
allows to have a diagnostic of the
success of minimization of the cross validation criterion (i.e. to
know whether the minimum of the CV criterion occurs within the scanned
range). Finally, the UD is then estimated over a grid.
The function getvolumehr
modifies the UD component of the
object passed as argument, so
that the contour of the UD displayed by the functions contour
and image.khr
corresponds to the different percentage levels of
home-range estimation (see examples). In addition, this function is
used in the function kernel.area
, to compute the home-range
size. Note, that the function plot.hrsize
(see the help page
of this function) can be used to display the home-range size estimated
at various levels.
The class khr
is a class grouping two sub-classes,
khrud
and khrudvol
:
kernelUD
returns a list of the class khrud
. This list
has one component per animal (named as the levels of argument
id
). Each component is itself a list, with the following
sub-components:
UD |
an object of class asc , with the values of density
probability in each cell of the grid |
h |
if LSCV is not used, the value of the smoothing
parameter. if
LSCV is used, a list with three components:
|
locs |
The relocations used in the estimation procedure. |
hmeth |
The argument h of the function kernelUD |
getvolumeUD
returns a list of class khrvol
,
with the same components as lists of class khrud
.
kernel.area
returns a data frame of subclass "hrsize"
,
with one column per animal and one row per level of
estimation of the home range.
getverticeshr
returns a
list of objects of class area
.
Clément Calenge calenge@biomserv.univ-lyon1.fr
Silverman, B.W. (1986) Density estimation for statistics and data analysis. London: Chapman & Hall.
Worton, B.J. (1989) Kernel methods for estimating the utilization
dirstibution in home-range studies. Ecology
, 70, 164–168.
Worton, B.J. (1995) Using Monte Carlo simulation to evaluate
kernel-based home range estimators. Journal of Wildlife Management
,
59,794–800.
Seaman, D.E. and Powell, R.A. (1998) Kernel home range estimation program (kernelhr). Documentation of the program. ftp://ftp.im.nbs.gov/pub/software/CSE/wsb2695/KERNELHR.ZIP.
import.asc
for additionnal informations on
objects of class asc
, mcp
for estimation of home
ranges using the minimum convex polygon, and for help on the function
plot.hrsize
.
data(puechabon) loc <- puechabon$locs[, c("X", "Y")] id <- puechabon$locs[, "Name"] ## Estimation of UD for the four animals ud <- kernelUD(loc, id) ud image(ud) ## Note that the contours ## corresponds to values of probability density udvol <- getvolumeUD(ud) image(udvol) ## Here, the contour corresponds to the ## home ranges estimated at different probability ## levels (i.e. the contour 90 corresponds to the 90 percent ## kernel home-range) ## udvol describes, for each cell of the grid, ## the smaller home-range to which it belongs ## Calculation of the 95 percent home range ver <- getverticeshr(ud, 95) elev <- getkasc(puechabon$kasc, "Elevation") # Map of the area image(elev) for (i in 1:length(ver)) lapply(split(ver[[i]][,2:3],ver[[i]][,1]), function(x) polygon(x, col = i+1)) legend(696500, 3166000, legend = names(ver), fill = 2:5) ## Example of estimation using LSCV udbis <- kernelUD(loc, id, h = "LSCV") image(udbis) ## Compare the estimation with ad hoc and LSCV method ## for the smoothing parameter (cuicui1 <- kernel.area(loc, id)) ## ad hoc plot(cuicui1) (cuicui2 <- kernel.area(loc, id, h = "LSCV")) ## LSCV plot(cuicui2) ## Diagnostic of the cross-validation plotLSCV(udbis) ## Use of the same4all argument: the same grid ## is used for all animals udbis <- kernelUD(loc, id, same4all = TRUE) image(udbis) ## And finally, estimation of the UD on a map ## (e.g. for subsequent analyses on habitat selection) elev <- getkasc(puechabon$kasc, "Elevation") opar <- par(mfrow = c(2, 2), mar = c(0, 0, 2, 0)) cont <- getcontour(elev) for (i in 1:length(udbis)) { image(elev, main = names(udbis)[i], axes = FALSE) points(udbis[[i]]$locs, pch = 21, bg = "white", col = "black") } ## Measures the UD in each pixel of the map udbis <- kernelUD(loc, id, grid = elev) opar <- par(mfrow = c(2, 2), mar = c(0, 0, 2, 0)) for (i in 1:length(udbis)) { image(udbis[[i]]$UD, main = names(udbis)[i], axes = FALSE) box() polygon(cont[, 2:3]) } par(opar)