clusthr
allows the estimation of the home range by clustering
(see details).
plot.clusthr
plots the results.
clusthr.area
computes the home-range size for given percents of
relocations included in the home range, and plots the results.
getverticesclusthr
computes the coordinates of the vertices of
the home ranges (kver.rast
and kver2shapefile
can be
used to export the results toward GIS, see the help page of these
functions).clusthr(xy, id = NULL)
## S3 method for class 'clusthr':
print(x, \dots)
## S3 method for class 'clusthr':
plot(x, whi = names(x), pch = 21,
bgpts = "white", colpts = "black", cex = 0.7,
plotit = TRUE, colpol = "grey", ...)
clusthr.area(x, percent = seq(20, 100, by = 5),
unin = c("m", "km"), unout = c("ha", "km2", "m2"),
plotit = TRUE)
getverticesclusthr(x, whi = names(x), lev=95)
clusthr
returned by the function
clusthr
points
for possible values and their interpretation.pch=21:25
help(par)
)"grey"
, "terrain.colors"
,
"heat.colors"
, "cm.colors"
, or NA
"m"
(default) for
meters or "km"
for kilometers"m2"
for
square meters, "km2"
for square kilometers or "ha"
for
hectares (default)plot
and print
.clusthr
returns a list of class clusthr
. 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:step
indicates the step number of the algorithm, clust
corresponds
to the cluster assigned to some relocations, and reloc
indicates the relocation(s) which is (are) assigned to the cluster
"clust" at step "step"plot.clusthr
returns an invisible list (see invisible
),
with one component per animal. Each component is itself a list with
one component per step of the clustering process. At each step, an
object of class area
describes the home range of the animal clusthr.area
returns a data.frame of class hrsize
, which
can be plotted using the generic function plot
.
getverticesclusthr
returns a list of class kver
, where each
element is an object of class area
.
gpclib
to be installed.kver
for further information on objects
of class kver
.data(puechabon)
lo<-puechabon$locs[,c("X","Y")]
## Home Range Estimation
res <- clusthr(lo, puechabon$locs$Name)
## Displays the home range
plot(res)
## Computes the home range size
clusthr.area(res)
Run the code above in your browser using DataLab