Description Usage Arguments Author(s) Examples
Extracts either either a random point from a home range vertice (i.e. a SpatialPolygonsDataFrame
object) or a probability-weighted random point from a Utilisation Distribution (i.e. a SpatialGridDataFrame
object)
1 | fRanXY(x, iextract)
|
x |
a numeric vector representing the individuals of interest. This number relates to order in which animals are listed within the |
iextract |
either a |
Ross Dwyer ross.dwyer@uq.edu.au
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | ## Load required packages
library(adehabitatHR)
library(raster)
## Load study data
data(StudyArea)
data(Roos)
coordinates(Roos) <- ~x+y
## Estimation of UD and KUD 95% for the 10 animals
ud <- kernelUD(Roos,h="href",same4all=TRUE)
ver95 <- getverticeshr(ud,95,unin = c("m"),unout=c("ha"))
## Conversion from a adehabitat UDm object into a sgdf object
udsgdf <- as(estUDm2spixdf(ud),"SpatialGridDataFrame")
## For 3 animals, extract a random point falling within their respective KUD 95%
fRanXY(1:3,ver95)
## For 3 animals, extract a probability weighted random point falling within
## their respective utilisation distributions
fRanXY(1:3,udsgdf)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.