The accumulated least cost from each site to every cell of the landscape. Corridors between two sites are built from the sum of their surfaces, so this is computed once per site and reused for every pair.
Arguments
- tr
A transition layer from
make_transition().- sites
An
sfobject of points or polygons (polygon centroids are used) with an ID column.- id
Name of the ID column in
sites.- filename
Optional GeoTIFF to write the surfaces to, which keeps memory use low for large landscapes.
Examples
# \donttest{
ex <- corridor_example()
tr <- make_transition(ex$resistance)
acc <- accumulated_cost(tr, ex$sites[1:3, ])
# }