getAreas: Calculate water areas per group or track

View source: R/get.R

getAreasR Documentation

Calculate water areas per group or track

Description

Calculate water areas per group or track

Usage

getAreas(input, type = c("group", "track"), breaks = c(0.5, 0.95))

Arguments

input

The output of dynBBMM

type

one of "group" or "track". If set to "track", UD rasters for each track are also supplied.

breaks

The contours for calculating usage areas in squared metres. By default the 95% and 50% contours are used.

Value

A list of areas per track, per group

Examples


# Import river shapefile
water <- actel::shapeToRaster(shape = paste0(system.file(package = "RSP"), "/River_latlon.shp"), 
size = 0.0001, buffer = 0.05) 

# Create a transition layer with 8 directions
tl <- actel::transitionLayer(x = water, directions = 8)

# Import example output from actel::explore() 
data(input.example) 

# Run RSP analysis
rsp.data <- runRSP(input = input.example, t.layer = tl, coord.x = "Longitude", coord.y = "Latitude")

# Run dynamic Brownian Bridge Movement Model (dBBMM)
dbbmm.data <- dynBBMM(input = rsp.data, base.raster = water, UTM = 56)

# Get dBBMM areas at group level
areas.group <- getAreas(input = dbbmm.data, type = "group", breaks = c(0.5, 0.95))



YuriNiella/RSP documentation built on Feb. 2, 2024, 5:03 a.m.