calculateDistances | R Documentation |
Calculate distance to a source (e.g. a habitat type, roads, an airport) when the landscape can be converted into binary data: source = 1, pixels to compute distance for = 8888 (and rest NA, masked by a buffer layer).
calculateDistances(r)
r |
a raster with values of 1 (target pixels) and 8888 (pixels to calculate distances) |
a distance raster where the value is the distance (in m) to a source. Sources have a value of 0.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.