geohabnet: Analysis of Cropland Connectivity

Geographical spatial analysis of cropland connectivity. Allows users to visualize risk index plots for a given set of crops. The functions are developed as an extension to analysis from Xing et al (2021) <doi:10.1093/biosci/biaa067>. The primary function is sean() and is indicative of how sensitive the risk analysis is to parameters using kernel models. The Package currently supports crops sourced from Monfreda, C., N. Ramankutty, and J. A. Foley (2008) <doi:10.1029/2007gb002947> "Farming the planet: 2. Geographic distribution of crop areas, yields, physiological types, and net primary production in the year 2000, Global Biogeochem. Cycles, 22, GB1022" and International Food Policy Research Institute (2019) <doi:10.7910/DVN/PRFF8V> "Global Spatially-Disaggregated Crop Production Statistics Data for 2010 Version 2.0, Harvard Dataverse, V4". This analysis produces 3 maps - mean, variance, and difference for the crop risk index. It applies distance functions and graph operations on a network to calculate risk index. There are multiple ways in which functions can be used - generate final outcome and then the intermediate outcomes for more sophisticated use cases. Refer to vignettes. sean() will set some global variables which can be accessed using $ prefix. These values are propagated to other functions for performing operations such as distance matrix calculation. parameters.yaml stores the parameters and values and can be accessed using get_parameters(). Refer it's usage. The objective of this package is to support risk analysis using cropland connectivity on 10 parameters - host crops, density threshold, aggregation and distance method, resolution, geographic extent, link threshold, kernel models, network metrics and maps. These parameters serves as an input and are used different phases of analysis workflow.

Version: 1.0.1
Imports: config (≥ 0.3.1), geodata (≥ 0.5.8), geosphere (≥ 1.5.18), igraph (≥ 1.4.2), terra (≥ 1.7.29), easycsv (≥ 1.0.8), yaml (≥ 2.3.7), stats, stringr (≥ 1.5.0), memoise (≥ 2.0.1), graphics, rlang (≥ 1.1.1), viridisLite (≥ 0.4.2), beepr (≥ 1.3), rnaturalearth (≥ 0.3.3), tools
Suggests: devtools, knitr, lintr (≥ 3.0.2), mockthat (≥ 0.2.8), pkgdown, rmarkdown, testthat (≥ 3.1.7)
Published: 2023-10-31
Author: Krishna Keshav [aut, cre], Garrett Lab [ctb] (, Karen Garrett ORCID iD [aut], Aaron Plex ORCID iD [aut], University of Florida [cph, fnd] (
Maintainer: Krishna Keshav <kkeshav at>
License: GPL-3
NeedsCompilation: no
Materials: README NEWS
CRAN checks: geohabnet results


Reference manual: geohabnet.pdf
Vignettes: Analyzing risk index using cropland connectivity


Package source: geohabnet_1.0.1.tar.gz
Windows binaries: r-devel:, r-release:, r-oldrel:
macOS binaries: r-release (arm64): geohabnet_1.0.1.tgz, r-oldrel (arm64): geohabnet_1.0.1.tgz, r-release (x86_64): geohabnet_1.0.1.tgz
Old sources: geohabnet archive


Please use the canonical form to link to this page.