View source: R/getverticeshr.r
getverticeshr | R Documentation |
These functions allow the extraction of the home-range contours computed using various methods (kernel home range, cluster home range, etc.)
getverticeshr(x, percent = 95, ...)
## S3 method for class 'estUD'
getverticeshr(x, percent = 95, ida = NULL, unin = c("m", "km"),
unout = c("ha", "km2", "m2"),
standardize = FALSE, ...)
## S3 method for class 'estUDm'
getverticeshr(x, percent = 95, whi = names(x),
unin = c("m", "km"),
unout = c("ha", "km2", "m2"),
standardize = FALSE, ...)
## S3 method for class 'MCHu'
getverticeshr(x, percent = 95, whi = names(x), ...)
## Default S3 method:
getverticeshr(x, percent = 95, ...)
x |
For |
percent |
a single value giving the percentage level for home-range estimation |
ida |
a character string indicating the id of the polygons
corresponding to the home range in the resulting
|
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) |
whi |
a vector of character strings indicating which animals should be returned. |
standardize |
a logical value indicating whether the UD should be standardized over the area of interest, so that the volume under the UD and *over the area* is equal to 1.. |
... |
Additional arguments to be passed to and from other methods |
An object of class SpatialPolygonsDataFrame
containing the
selected home range contours of the animals.
The function getverticeshr.default
is present for compatibility
purposes. Its use generates an error.
Clement Calenge clement.calenge@ofb.gouv.fr
kernelUD
, kernelbb
or
kernelkc
for methods generating objects of classes
estUD
and estUDm
,
clusthr
, LoCoH.a
and
CharHull
for methods generating objects of class
MCHu
.
### Example with a kernel home range
data(puechabonsp)
loc <- puechabonsp$relocs
## have a look at the data
head(as.data.frame(loc))
## the first column of this data frame is the ID
## Estimation of UD for the four animals
(ud <- kernelUD(loc[,1]))
## Calculates the home range contour
ver <- getverticeshr(ud, percent=95)
ver
plot(ver)
## Example with a cluster home range
clu <- clusthr(loc[,1])
ver2 <- getverticeshr(clu, percent=95)
ver2
plot(ver2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.