Calculate 5 information theory landscape metrics
calculate_it_metrics.Rd
This function allow to calculate 5 information theory landscape metrics
Note
This is a wrapper of the function "sample_lsm" from the landscapemetrics package (see References)
References
Hesselbarth, M.H.K., Sciaini, M., With, K.A., Wiegand, K., Nowosad, J. 2019. landscapemetrics: an open‐source R tool to calculate landscape metrics. Ecography, 42: 1648-1657 (v2.1.4).
Nowosad J., TF Stepinski. 2019. Information theory as a consistent framework for quantification and classification of landscape patterns. https://doi.org/10.1007/s10980-019-00830-x
Information theory-based framework for the analysis of landscape patterns
Examples
library(sf)
#> Linking to GEOS 3.10.2, GDAL 3.4.1, PROJ 8.2.1; sf_use_s2() is TRUE
library(spDataLarge)
#> Error in library(spDataLarge): there is no package called ‘spDataLarge’
landscape_raster <- rast(system.file("raster/nlcd.tif",
package = "spDataLarge"))
#> Error in rast(system.file("raster/nlcd.tif", package = "spDataLarge")): could not find function "rast"
bbox <- st_bbox(landscape_raster) |>
st_as_sfc(crs = EPSG:26912) |>
st_as_sf()
#> Error in eval(expr, envir, enclos): object 'landscape_raster' not found
h3_bbox <- get_h3_grid(bbox, resolution = 6) |>
st_transform(26912)
#> Error in eval(expr, envir, enclos): object 'bbox' not found
result_sf <- calculate_it_metrics(landscape_raster, h3_bbox)
#> Error in eval(expr, envir, enclos): object 'landscape_raster' not found