rhrMCP: Minimum Convex Polygon (MCP)

Description Usage Arguments Value Note Author(s) See Also Examples

Description

Minimum Convex Polygon (MCP)

Usage

1
2
  rhrMCP(xy, levels = 95, ud = FALSE, cud = FALSE,
    xrange = NA, yrange = NA, res = 100)

Arguments

xy

data.frame with two columns. The first column contains x coordinates and the second column contains y coordinates

levels

vector with the percentage of closest points to the centroid that are used to calculated MCP

ud

logical value, indicating whether or not a utilization distribution should be calculated.

cud

a logical value, indicating whether or not a cumulative utilization distribution should be calculated

xrange

vector of length two, with xmin and xmax for the UD

yrange

vector of length two, with ymin and ymax for the UD

res

the resolution for the ud.

Value

object of class RhrHREstimator

Note

Computes the minimum convex polygon of a subset of points. First the centroid of the home range is found with rgeos::gCentroid and then the '100 - levels' points are used to calculate a minimum convex polygon.

Author(s)

Johannes Signer inspired from adehabitatHR::mcp

See Also

adehabitatHR::mcp, rgeos::gConvexHull

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
data(datSH)
## Calculate mcp at one level
mcp1 <- rhrMCP(datSH[, 2:3], levels=95)
## Calculate mcp at several levels
mcp2 <- rhrMCP(datSH[, 2:3], levels=c(50, 90, 95))

## Area at each isopleth level
rhrArea(mcp2)

## SptialPolygonsDataFrame of isopleth
isopleths(mcp2)

rhr documentation built on May 2, 2019, 6:06 p.m.

Related to rhrMCP in rhr...