View source: R/create_lcp_density.R
create_lcp_density | R Documentation |
Cumulatively combines least-cost paths to idenify routes of preferential movement
create_lcp_density(x, lcps, rescale = FALSE)
x |
|
lcps |
|
rescale |
|
SpatRaster
Joseph Lewis
r <- terra::rast(system.file("extdata/SICILY_1000m.tif", package="leastcostpath"))
slope_cs <- create_slope_cs(x = r, cost_function = "tobler", neighbours = 4)
locs <- sf::st_sf(geometry = sf::st_sfc(
sf::st_point(c(839769, 4199443)),
sf::st_point(c(1038608, 4100024)),
sf::st_point(c(907695, 4145478)),
crs = terra::crs(r)))
lcps <- create_FETE_lcps(x = slope_cs, locations = locs)
lcps_dens <- create_lcp_density(x = r, lcps = lcps)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.