Learn R Programming

move (version 3.2.2)

getVolumeUD: Modify a UD raster

Description

Modifies the UD raster: that the cell values of the resulting raster are equal to the percentage of the smallest home range containing this cell.

Usage

# S4 method for .UD
getVolumeUD(x, ...)

Arguments

x

a DBBMM, DBBMMStack, dynBGB, .UD or .UDStack object

...

when x is of class DBBMM or dynBGB, several objects of class DBBMM or dynBGB can be added (see 'Examples')

Value

'raster' or 'rasterStack' If several objects are provided, a list of rasters is returned

See Also

raster2contour

Examples

Run this code
# NOT RUN {
data(leroydbbmm)
data(dbbmmstack)
data(leroydbgb)
getVolumeUD(leroydbbmm) # for a DBBMM object
getVolumeUD(dbbmmstack) # for a DBBMMStack object 
getVolumeUD(leroydbgb) # for a dynBGB object 

getVolumeUD(leroydbbmm, leroydbgb) # for several objects 

plot(getVolumeUD(leroydbbmm))

## e.g. select the raster corresponding to the 95% UD
leroyUD <- getVolumeUD(leroydbbmm)
leroyUD[leroyUD>0.95] <- NA
plot(leroyUD)

# }

Run the code above in your browser using DataLab