Package: landscapemetrics 2.1.4

Maximilian H.K. Hesselbarth

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' (<https://www.fragstats.org/>) 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.

Authors:Maximilian H.K. Hesselbarth [aut, cre], Marco Sciaini [aut], Jakub Nowosad [aut], Sebastian Hanss [aut], Laura J. Graham [ctb], Jeffrey Hollister [ctb], Kimberly A. With [ctb], Florian Privé [ctb], Project Nayuki [ctb], Matt Strimas-Mackey [ctb]

landscapemetrics_2.1.4.tar.gz
landscapemetrics_2.1.4.zip(r-4.5)landscapemetrics_2.1.4.zip(r-4.4)landscapemetrics_2.1.4.zip(r-4.3)
landscapemetrics_2.1.4.tgz(r-4.4-x86_64)landscapemetrics_2.1.4.tgz(r-4.4-arm64)landscapemetrics_2.1.4.tgz(r-4.3-x86_64)landscapemetrics_2.1.4.tgz(r-4.3-arm64)
landscapemetrics_2.1.4.tar.gz(r-4.5-noble)landscapemetrics_2.1.4.tar.gz(r-4.4-noble)
landscapemetrics.pdf |landscapemetrics.html
landscapemetrics/json (API)
NEWS

# Install 'landscapemetrics' in R:
install.packages('landscapemetrics', repos = c('https://r-spatialecology.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Bug tracker:https://github.com/r-spatialecology/landscapemetrics/issues

Uses libs:
  • c++– GNU Standard C++ Library v3
Datasets:

On CRAN:

landscape-ecologylandscape-metricsrasterspatial

12.33 score 230 stars 3 packages 544 scripts 2.7k downloads 12 mentions 170 exports 31 dependencies

Last updated 2 months agofrom:22b63d4c9e. Checks:OK: 9. Indexed: yes.

TargetResultDate
Doc / VignettesOKNov 07 2024
R-4.5-win-x86_64OKNov 07 2024
R-4.5-linux-x86_64OKNov 07 2024
R-4.4-win-x86_64OKNov 07 2024
R-4.4-mac-x86_64OKNov 07 2024
R-4.4-mac-aarch64OKNov 07 2024
R-4.3-win-x86_64OKNov 07 2024
R-4.3-mac-x86_64OKNov 07 2024
R-4.3-mac-aarch64OKNov 07 2024

Exports:calculate_correlationcalculate_lsmcheck_landscapeconstruct_bufferdata_infoextract_lsmget_adjacenciesget_area_patchesget_boundariesget_centroidsget_circumscribingcircleget_class_patchesget_complexityget_enn_patchget_nearestneighbourget_patchesget_perimeter_patchget_pointsget_unique_valueslandscape_as_listlist_lsmlsm_c_ailsm_c_area_cvlsm_c_area_mnlsm_c_area_sdlsm_c_calsm_c_cai_cvlsm_c_cai_mnlsm_c_cai_sdlsm_c_circle_cvlsm_c_circle_mnlsm_c_circle_sdlsm_c_clumpylsm_c_cohesionlsm_c_contig_cvlsm_c_contig_mnlsm_c_contig_sdlsm_c_core_cvlsm_c_core_mnlsm_c_core_sdlsm_c_cplandlsm_c_dcadlsm_c_dcore_cvlsm_c_dcore_mnlsm_c_dcore_sdlsm_c_divisionlsm_c_edlsm_c_enn_cvlsm_c_enn_mnlsm_c_enn_sdlsm_c_frac_cvlsm_c_frac_mnlsm_c_frac_sdlsm_c_gyrate_cvlsm_c_gyrate_mnlsm_c_gyrate_sdlsm_c_ijilsm_c_lpilsm_c_lsilsm_c_meshlsm_c_ndcalsm_c_nlsilsm_c_nplsm_c_pafraclsm_c_para_cvlsm_c_para_mnlsm_c_para_sdlsm_c_pdlsm_c_pladjlsm_c_plandlsm_c_shape_cvlsm_c_shape_mnlsm_c_shape_sdlsm_c_splitlsm_c_tcalsm_c_telsm_l_ailsm_l_area_cvlsm_l_area_mnlsm_l_area_sdlsm_l_cai_cvlsm_l_cai_mnlsm_l_cai_sdlsm_l_circle_cvlsm_l_circle_mnlsm_l_circle_sdlsm_l_cohesionlsm_l_condentlsm_l_contaglsm_l_contig_cvlsm_l_contig_mnlsm_l_contig_sdlsm_l_core_cvlsm_l_core_mnlsm_l_core_sdlsm_l_dcadlsm_l_dcore_cvlsm_l_dcore_mnlsm_l_dcore_sdlsm_l_divisionlsm_l_edlsm_l_enn_cvlsm_l_enn_mnlsm_l_enn_sdlsm_l_entlsm_l_frac_cvlsm_l_frac_mnlsm_l_frac_sdlsm_l_gyrate_cvlsm_l_gyrate_mnlsm_l_gyrate_sdlsm_l_ijilsm_l_joinentlsm_l_lpilsm_l_lsilsm_l_meshlsm_l_msidilsm_l_msieilsm_l_mutinflsm_l_ndcalsm_l_nplsm_l_pafraclsm_l_para_cvlsm_l_para_mnlsm_l_para_sdlsm_l_pdlsm_l_pladjlsm_l_prlsm_l_prdlsm_l_relmutinflsm_l_rprlsm_l_shape_cvlsm_l_shape_mnlsm_l_shape_sdlsm_l_shdilsm_l_sheilsm_l_sidilsm_l_sieilsm_l_splitlsm_l_talsm_l_tcalsm_l_telsm_p_arealsm_p_cailsm_p_circlelsm_p_contiglsm_p_corelsm_p_ennlsm_p_fraclsm_p_gyratelsm_p_ncorelsm_p_paralsm_p_perimlsm_p_shapematrix_to_rasteroptions_landscapemetricspad_rasterpoints_as_matprepare_extrasproj_inforaster_to_pointsrcpp_get_nearest_neighborsample_lsmshow_coresshow_correlationshow_lsmshow_patchesspatialize_lsmunpad_rasterwindow_lsm

Dependencies:clicolorspacefansifarverggplot2gluegtableisobandlabelinglatticelifecyclemagrittrMASSMatrixmgcvmunsellnlmepillarpkgconfigR6RColorBrewerRcppRcppArmadillorlangscalesterratibbleutf8vctrsviridisLitewithr

Get started

Rendered fromget_started.Rmdusingknitr::rmarkdownon Nov 07 2024.

Last update: 2023-03-30
Started: 2021-12-08

Readme and manuals

Help Manual

Help pageTopics
Augusta NLCD 2011augusta_nlcd
Calculate correlationcalculate_correlation
calculate_lsmcalculate_lsm
Check input landscapecheck_landscape
extract_lsmextract_lsm
get_adjacenciesget_adjacencies
get_boundariesget_boundaries
get_centroidsget_centroids
get_circumscribingcircleget_circumscribingcircle
get_nearestneighbourget_nearestneighbour
get_patchesget_patches
get_unique_valuesget_unique_values
Example map (random cluster neutral landscape model).landscape
Landscape as listlandscape_as_list landscape_as_list.list landscape_as_list.matrix landscape_as_list.numeric landscape_as_list.PackedSpatRaster landscape_as_list.RasterBrick landscape_as_list.RasterLayer landscape_as_list.RasterStack landscape_as_list.SpatRaster landscape_as_list.stars
List landscape metricslist_lsm
Tibble of abbreviations coming from FRAGSTATSlsm_abbreviations_names
AI (class level)lsm_c_ai
AREA_CV (class level)lsm_c_area_cv
AREA_MN (class level)lsm_c_area_mn
AREA_SD (class level)lsm_c_area_sd
CA (class level)lsm_c_ca
CAI_CV (class level)lsm_c_cai_cv
CAI_MN (class level)lsm_c_cai_mn
CAI_SD (class level)lsm_c_cai_sd
CIRCLE_CV (Class level)lsm_c_circle_cv
CIRCLE_MN (Class level)lsm_c_circle_mn
CIRCLE_SD (Class level)lsm_c_circle_sd
CLUMPY (class level)lsm_c_clumpy
COHESION (class level)lsm_c_cohesion
CONTIG_CV (class level)lsm_c_contig_cv
CONTIG_MN (class level)lsm_c_contig_mn
CONTIG_SD (class level)lsm_c_contig_sd
CORE_CV (class level)lsm_c_core_cv
CORE_MN (class level)lsm_c_core_mn
CORE_SD (class level)lsm_c_core_sd
CPLAND (class level)lsm_c_cpland
DCAD (class level)lsm_c_dcad
DCORE_CV (class level)lsm_c_dcore_cv
DCORE_MN (class level)lsm_c_dcore_mn
DCORE_SD (class level)lsm_c_dcore_sd
DIVISION (class level)lsm_c_division
ED (class level)lsm_c_ed
ENN_CV (class level)lsm_c_enn_cv
ENN_MN (class level)lsm_c_enn_mn
ENN_SD (class level)lsm_c_enn_sd
FRAC_CV (class level)lsm_c_frac_cv
FRAC_MN (class level)lsm_c_frac_mn
FRAC_SD (class level)lsm_c_frac_sd
GYRATE_CV (class level)lsm_c_gyrate_cv
GYRATE_MN (class level)lsm_c_gyrate_mn
GYRATE_SD (class level)lsm_c_gyrate_sd
Interspersion and Juxtaposition index (class level)lsm_c_iji
LPI (class level)lsm_c_lpi
LSI (class level)lsm_c_lsi
MESH (class level)lsm_c_mesh
NDCA (class level)lsm_c_ndca
nLSI (class level)lsm_c_nlsi
NP (class level)lsm_c_np
PAFRAC (class level)lsm_c_pafrac
PARA_CV (class level)lsm_c_para_cv
PARA_MN (class level)lsm_c_para_mn
PARA_SD (class level)lsm_c_para_sd
PD (class level)lsm_c_pd
PLADJ (class level)lsm_c_pladj
PLAND (class level)lsm_c_pland
SHAPE_CV (class level)lsm_c_shape_cv
SHAPE_MN (class level)lsm_c_shape_mn
SHAPE_SD (class level)lsm_c_shape_sd
SPLIT (class level)lsm_c_split
TCA (class level)lsm_c_tca
TE (class level)lsm_c_te
AI (landscape level)lsm_l_ai
AREA_CV (landscape level)lsm_l_area_cv
AREA_MN (landscape level)lsm_l_area_mn
AREA_SD (landscape level)lsm_l_area_sd
CAI_CV (landscape level)lsm_l_cai_cv
CAI_MN (landscape level)lsm_l_cai_mn
CAI_SD (landscape level)lsm_l_cai_sd
CIRCLE_CV (landscape level)lsm_l_circle_cv
CIRCLE_MN (landscape level)lsm_l_circle_mn
CIRCLE_SD (landscape level)lsm_l_circle_sd
COHESION (landscape level)lsm_l_cohesion
Conditional entropy (landscape level)lsm_l_condent
CONTAG (landscape level)lsm_l_contag
CONTIG_CV (landscape level)lsm_l_contig_cv
CONTIG_MN (landscape level)lsm_l_contig_mn
CONTIG_SD (landscape level)lsm_l_contig_sd
CORE_CV (landscape level)lsm_l_core_cv
CORE_MN (landscape level)lsm_l_core_mn
CORE_SD (landscape level)lsm_l_core_sd
DCAD (landscape level)lsm_l_dcad
DCORE_CV (landscape level)lsm_l_dcore_cv
DCORE_MN (landscape level)lsm_l_dcore_mn
DCORE_SD (landscape level)lsm_l_dcore_sd
DIVISION (landscape level)lsm_l_division
ED (landscape level)lsm_l_ed
ENN_CV (landscape level)lsm_l_enn_cv
ENN_MN (landscape level)lsm_l_enn_mn
ENN_SD (landscape level)lsm_l_enn_sd
ENT (landscape level)lsm_l_ent
FRAC_CV (landscape level)lsm_l_frac_cv
FRAC_MN (landscape level)lsm_l_frac_mn
FRAC_SD (landscape level)lsm_l_frac_sd
GYRATE_CV (landscape level)lsm_l_gyrate_cv
GYRATE_MN (landscape level)lsm_l_gyrate_mn
GYRATE_SD (landscape level)lsm_l_gyrate_sd
Interspersion and Juxtaposition index (landscape level)lsm_l_iji
JOINENT (landscape level)lsm_l_joinent
LPI (landscape level)lsm_l_lpi
LSI (landscape level)lsm_l_lsi
MESH (landscape level)lsm_l_mesh
MSIDI (landscape level)lsm_l_msidi
MSIEI (landscape level)lsm_l_msiei
MUTINF (landscape level)lsm_l_mutinf
NDCA (landscape level)lsm_l_ndca
NP (landscape level)lsm_l_np
PAFRAC (landscape level)lsm_l_pafrac
PARA_CV (landscape level)lsm_l_para_cv
PARA_MN (landscape level)lsm_l_para_mn
PARA_SD (landscape level)lsm_l_para_sd
PD (landscape level)lsm_l_pd
PLADJ (landscape level)lsm_l_pladj
PR (landscape level)lsm_l_pr
PRD (landscape level)lsm_l_prd
RELMUTINF (landscape level)lsm_l_relmutinf
RPD (landscape level)lsm_l_rpr
SHAPE_CV (landscape level)lsm_l_shape_cv
SHAPE_MN (landscape level)lsm_l_shape_mn
SHAPE_SD (landscape level)lsm_l_shape_sd
SHDI (landscape level)lsm_l_shdi
SHEI (landscape level)lsm_l_shei
SIDI (landscape level)lsm_l_sidi
SIEI (landscape level)lsm_l_siei
SPLIT (landscape level)lsm_l_split
TA (landscape level)lsm_l_ta
TCA (landscape level)lsm_l_tca
TE (landscape level)lsm_l_te
AREA (patch level)lsm_p_area
CAI (patch level)lsm_p_cai
CIRCLE (patch level)lsm_p_circle
CONTIG (patch level)lsm_p_contig
CORE (patch level)lsm_p_core
ENN (patch level)lsm_p_enn
FRAC (patch level)lsm_p_frac
GYRATE (patch level)lsm_p_gyrate
NCORE (patch level)lsm_p_ncore
PARA (patch level)lsm_p_para
PERIM (patch level)lsm_p_perim
SHAPE (patch level)lsm_p_shape
options_landscapemetricsoptions_landscapemetrics
Podlasie ESA CCI LCpodlasie_ccilc
sample_lsmsample_lsm
Show core areashow_cores
Show correlationshow_correlation
Show landscape metricsshow_lsm
Show patchesshow_patches
spatialize_lsmspatialize_lsm
window_lsmwindow_lsm