Description Usage Arguments Details Value Examples
View source: R/s5_interpolate_animate.R
Creates least cost paths as line objects between each location for any number of individuals.
1 | lc_paths(det_locs, conductance)
|
det_locs |
A |
conductance |
A |
Estimating the least cost paths between a large number of locations can be time consuming.
Returns an object of class lcp_list, which is also
a list. List elements are of class lcp_ind. See
lc_path_ind for details.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | #Load sample data
data(acoustic)
#Process detections and stations
proc.det <- proc_dets(det = acoustic$detections, sta = acoustic$stations)
#Calculate COAs -- Note, using 6 hour COAs to reduce processing time
coas.6h <- coa_locs(proc.det, Delta_t = "6 hours")
#Initialize raster
r.cond <- init_raster(study_area = acoustic$study_area, res = 0.001)
#Create conductance raster
conduct <- raster_conduct(sa_rast = r.cond, impassable = acoustic$land)
#Create least-cost paths
lcps <- lc_paths(det_locs = coas.6h, conductance = conduct)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.