manureshed: Spatiotemporal Nutrient Balance Analysis Across Agricultural and Municipal Systems

A comprehensive framework for analyzing agricultural nutrient balances across multiple spatial scales (county, 'HUC8', 'HUC2') with integration of wastewater treatment plant ('WWTP') effluent loads for both nitrogen and phosphorus. Supports classification of spatial units as nutrient sources, sinks, or balanced areas based on agricultural surplus and deficit calculations. Includes visualization tools, spatial transition probability analysis, and nutrient flow network mapping. Built-in datasets include agricultural nutrient balance data from the Nutrient Use Geographic Information System ('NuGIS'; The Fertilizer Institute and Plant Nutrition Canada, 1987-2016) <https://nugis.tfi.org/tabular_data/> and U.S. Environmental Protection Agency ('EPA') wastewater discharge data from the 'ECHO' Discharge Monitoring Report ('DMR') Loading Tool (2007-2016) <https://echo.epa.gov/trends/loading-tool/water-pollution-search>. Data are downloaded on demand from the Open Science Framework ('OSF') repository to minimize package size while maintaining full functionality. The integrated 'manureshed' framework methodology is described in Akanbi et al. (2025) <doi:10.1016/j.resconrec.2025.108697>. Designed for nutrient management planning, environmental analysis, and circular economy research at watershed/administrative to national scales. This material is based upon financial support by the National Science Foundation, EEC Division of Engineering Education and Centers, NSF Engineering Research Center for Advancing Sustainable and Distributed Fertilizer Production (CASFER), NSF 20-553 Gen-4 Engineering Research Centers award 2133576. We thank Dr. Robert D. Sabo (U.S. Environmental Protection Agency) for his valuable contributions to the conceptual development and review of this work.

Version: 0.1.0
Depends: R (≥ 4.0.0)
Imports: dplyr (≥ 1.0.0), sf (≥ 1.0.0), ggplot2 (≥ 3.3.0), tidyr (≥ 1.1.0), jsonlite (≥ 1.7.0), rlang (≥ 0.4.0), magrittr, scales (≥ 1.1.0), igraph (≥ 1.2.0), tigris (≥ 1.5.0), stats, utils, tools
Suggests: nhdplusTools (≥ 0.5.0), RColorBrewer (≥ 1.1.0), cowplot (≥ 1.1.0), ggpubr (≥ 0.4.0), viridis (≥ 0.6.0), testthat (≥ 3.0.0), knitr, progress, rmarkdown
Published: 2025-12-22
DOI: 10.32614/CRAN.package.manureshed (may not be active yet)
Author: Olatunde D. Akanbi ORCID iD [aut, cre, cph], Vibha Mandayam ORCID iD [aut], Atharva Gupta ORCID iD [aut], K. Colton Flynn ORCID iD [aut], Jeffrey Yarus ORCID iD [aut], Erika I. Barcelos ORCID iD [aut, cph], Roger H. French ORCID iD [aut, cph]
Maintainer: Olatunde D. Akanbi <olatunde.akanbi at case.edu>
License: MIT + file LICENSE
URL: https://osf.io/g39xa/
NeedsCompilation: no
SystemRequirements: GDAL (>= 2.0.1), GEOS (>= 3.4.0), PROJ (>= 4.8.0)
Citation: manureshed citation info
Materials: NEWS
CRAN checks: manureshed results

Documentation:

Reference manual: manureshed.html , manureshed.pdf
Vignettes: Advanced Features (source, R code)
Sensitivity Analysis with Custom Efficiency Factors (source, R code)
Using Your Own Data (source, R code)
Getting Started with manureshed (source, R code)
Creating Maps and Plots (source, R code)

Downloads:

Package source: manureshed_0.1.0.tar.gz
Windows binaries: r-devel: not available, r-release: not available, r-oldrel: not available
macOS binaries: r-release (arm64): not available, r-oldrel (arm64): not available, r-release (x86_64): not available, r-oldrel (x86_64): not available

Linking:

Please use the canonical form https://CRAN.R-project.org/package=manureshed to link to this page.