Description Usage Arguments Details Value Examples
View source: R/s5_interpolate_animate.R
Creates a conductance raster for the study area for use in calculating least cost paths between two locations.
1 | raster_conduct(sa_rast, impassable, impassable_value = 100)
|
sa_rast |
A |
impassable |
An |
impassable_value |
A resistance value to assign to the
|
This function takes a RasterLayer
as a template and an sfc_POLYGON and returns another
RasterLayer of conductance. This conductance raster is intended to
be passed downstream for calculation of least cost paths between animal
locations.
Returns a RasterLayer object
of conductance values.
1 2 3 4 5 6 7 8 9 10 11 12 13 | #Load sample data
data(acoustic)
#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)
#Plot
plot(conductance)
plot(acoustic$study_area, add = TRUE)
plot(acoustic$land, add = TRUE, col = NA)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.