volras: Volume contour from Raster

Description Usage Arguments Details Value See Also Examples

View source: R/volras.r

Description

Compute a percent volume contour polygon from a raster UD.

Usage

1
volras(x, percent = 95, simplify = TRUE)

Arguments

x

a RasterLayer

percent

a percent value to get the volume contour, e.g., 95. Note: This is a simple function and only accepts one value at a time.

simplify

(logical; default = TRUE) whether or not to simplify the output home range polygon using gSimplify from rgeos with a tolerance value of 1.5 times the spatial resolution of the UD.

Details

The volras function is a simpler version of the getvolumeUD function from the package adehabitatHR developed by C. Calenge. It allows the output to be a 'raster looking' polygon (i.e., the cells that are within the UD) or a simplified (smoothed) polygon.

Value

A SpatialPolygonsDataFrame.

See Also

fbtgUD, rspUD, tgkde

Examples

1
2
3
4
5
data(m3)
ud <- tgkde(m3,disfun='inv',method='vanderWatt')
raster::plot(ud)
hr <- volras(ud,95)
sp::plot(hr,add=TRUE)

jedalong/wildlifeTG documentation built on July 17, 2019, 2:52 p.m.