calc_lsm | R Documentation |
This function calculates any metrics implemented in landscapemetrics package
using objects returned from decouple()
, decouple.specific()
or nestedscales()
.
calc_lsm(x, metric = NULL, level = NULL, ...)
x |
an output from |
metric |
Character: one of the metrics in landscapemetrics. See list_lsm() |
level |
Character: "landscape", "class" or "patch". Optional. |
... |
any other parameter from calulate_lsm() in landscapemetrics |
extract_metrics()
, decouple()
, decouple.specific()
, nestedscales()
, landscapemetrics::calculate_lsm()
## Not run:
#You don't need to run the next two lines
r <- raster(system.file("extdata/raster.grd", package="landscapeDecoupler"))
p <- read_points(system.file("extdata/pnts.shp", package="landscapeDecoupler"), type="shp")
#setting buffers sizes
b = c(1000,2000,3000)
x <- decouple(r, p, b)
calc_lsm(x, level = "landscape", "shdi")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.