landscapemetrics: Landscape Metrics for Categorical Map Patterns

Calculates landscape metrics for categorical landscape patterns in a tidy workflow. 'landscapemetrics' reimplements the most common metrics from 'FRAGSTATS' (<>) and new ones from the current literature on landscape metrics. This package supports 'terra' SpatRaster objects as input arguments. It further provides utility functions to visualize patches, select metrics and building blocks to develop new metrics.

Version: 2.1.3
Depends: R (≥ 3.6)
Imports: cli, ggplot2, methods, Rcpp (≥ 0.11.0), stats, terra, tibble
LinkingTo: Rcpp, RcppArmadillo
Suggests: covr, dplyr, knitr, raster, rmarkdown, sf, sp, stars, stringr, testthat, tidyr
Published: 2024-06-26
DOI: 10.32614/CRAN.package.landscapemetrics
Author: Maximilian H.K. Hesselbarth ORCID iD [aut, cre], Marco Sciaini ORCID iD [aut], Jakub Nowosad ORCID iD [aut], Sebastian Hanss ORCID iD [aut], Laura J. Graham [ctb] (Input on package structure), Jeffrey Hollister [ctb] (Input on package structure), Kimberly A. With [ctb] (Input on package structure), Florian Privé [ctb] (Original author of underlying C++ code for get_nearestneighbour() function), Project Nayuki [ctb] (Original author of underlying C++ code for get_circumscribingcircle and lsm_p_circle), Matt Strimas-Mackey [ctb] (Bugfix in sample_metrics())
Maintainer: Maximilian H.K. Hesselbarth <mhk.hesselbarth at>
License: GPL-3
NeedsCompilation: yes
Citation: landscapemetrics citation info
Materials: NEWS
In views: Spatial
CRAN checks: landscapemetrics results


Reference manual: landscapemetrics.pdf
Vignettes: Get started


Package source: landscapemetrics_2.1.3.tar.gz
Windows binaries: r-devel:, r-release:, r-oldrel:
macOS binaries: r-release (arm64): landscapemetrics_2.1.3.tgz, r-oldrel (arm64): landscapemetrics_2.1.3.tgz, r-release (x86_64): landscapemetrics_2.1.3.tgz, r-oldrel (x86_64): landscapemetrics_2.1.3.tgz
Old sources: landscapemetrics archive

Reverse dependencies:

Reverse imports: bespatial, ecochange, ShapePattern
Reverse suggests: mapme.biodiversity, restoptr, rflsgen


Please use the canonical form to link to this page.