Skip to contents

Uses the kernel density maps to estimate the area of territories by locating areas of activity that contain foraging intensity above a given threshold, which locates potential territories - to confirm territories, confirmatory signs are required including dam and dwelling locations.

Usage

estimate_territories(
  forage_raster,
  confirm_signs,
  low_thresh = 0,
  upper_thresh = 0.95
)

Arguments

forage_raster

the foraging density raster generated from beavertools::forage_density()

confirm_signs

An sf object or an sf-readable file. See sf::st_drivers() for available drivers. containing 'confirmatory' field signs for beaver such as dams and lodges. This is required to assign a confidence classification for areas of activity either: 'Activity'. 'Possible' or 'Territory'.

low_thresh

numeric between 0 and 1. Used to set minimum value for activity. Lower values return more information i.e. area with cover but can result in the merging of territories as density increases. use lowest possible value.

upper_thresh

numeric between 0 and 1. Used to set the minimum value for core areas of activity. AS central place forages, beavers feed more near their lodge, this value idenitfies areas of activity which may indicate the centre of a territory. default is 0.95, may need adjusting depending on territory density.

Value

An 'sf' polygon object defining areas of beaver activity, with kernel denisty summary stats and the territory status.

Examples

# Here we filter the filter the built in 2019-2020 ROBT feeding sign data `RivOtter_FeedSigns`
# Then pipe this 'sf' object to forage_density.

ROBT_201920 <- RivOtter_FeedSigns %>%
dplyr::filter(SurveySeason == "2019 - 2020")%>%
  forage_density(., 'FeedCat')
#> No value supplied for "kd_extent" argument: default extent will be used
#> Error in spatialEco::sp.kde(forage_points, y = forage_points$weights,     bw = kern_bw, nr = dims$nrows[1], nc = dims$ncols[1], newdata = kd_extent,     standardize = standardise): unused arguments (nr = dims$nrows[1], nc = dims$ncols[1], newdata = kd_extent)

# Now we load the ROBT `RivOtter_OtherSigns` dataset and filter to the same
# year as the forage density raster.

CS_201920 <- RivOtter_OtherSigns %>%
dplyr::filter(SurveySeason == "2019 - 2020")

# run territory classification
estimate_territories(ROBT_201920, confirm_signs = CS_201920)
#> Error in purrr::map(., ~raster::quantile(forage_raster, .)):  In index: 1.
#> Caused by error in `h()`:
#> ! error in evaluating the argument 'x' in selecting a method for function 'quantile': object 'ROBT_201920' not found