knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  fig.path = "man/figures/README-",
  out.width = "100%"
)

mapspamc

Lifecycle: experimental Project Status: Active – The project has reached a stable, usable state and is being actively developed.

The aim of the mapspamc R package is to facilitate the creation of country level crop distribution maps. The model builds on the global version of the Spatial Production Allocation model (SPAM) [@You2006; @You2009; @You2014a; @Yu2020], which uses a cross-entropy optimization approach to 'pixelate' national and subnational crop statistics on a spatial grid at a resolution of 5 arc minutes (~ 10 x 10 km). mapspamc provides the necessary infrastructure to run SPAM at the country level and makes it possible to incorporate national sources of information and potentially create maps at a higher resolution of 30 arc seconds (~ 1 x 1 km) [@VanDijk2022b]. More information can be found on the package website.

Installation

To install mapspamc:

install.packages("remotes")
remotes::install_github("michielvandijk/mapspamc")

References



michielvandijk/mapspamc documentation built on April 17, 2025, 7:31 p.m.