Description Usage Arguments Value Examples
This function generates a `TransitionLayer`
(gdistance
package) that excludes the cells that are outside a depth range, which is
used later to calculate the shortest path between two points that avoids
the excluded cells.
1 | leastCostMap(topo, min.depth = 0, max.depth = NULL)
|
topo |
raster dataset ( |
min.depth, max.depth |
Minimum and maximum depths that the path is
allowed to cross. If not provided, only areas that are marked with
|
A `TransitionLayer`
object (gdistance
package).
1 2 3 4 5 6 | ## Not run:
library(raster)
dist.cost <- leastCostMap(bathymetry, min.depth = 30)
plot(raster(dist.cost))
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.