Skip to content

Shiny app for generating cropping calendars from open data

License

Notifications You must be signed in to change notification settings

asheshwor/cropcal

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cropping calendar visualization

An app to visualize key dates for various crops organized by country and region. Once you make a selection of the region using drop-down menus, the calendar will be displayed. This app uses the crop calendar dataset from Sacks et al. (2010) and is built using Shiny.

Demo

Live demo at https://asheshwor.shinyapps.io/cropcal/

This app can also be run from RStudio using the following code:

## Install missing packages
packagesRequired <- c("shiny", "rgeos", "RColorBrewer",
                      "dplyr", "ggplot2")
packagesToInstall <- packagesRequired[!(packagesRequired %in%
                                          installed.packages()[,"Package"])]
if(length(packagesToInstall)) install.packages(packagesToInstall)
## Run app from Github repo
shiny::runGitHub('asheshwor/cropcal')

Screenshots

app screenshot 1 Screenshot of app

app screenshot 2 Screenshot of app

Data source

Cropping calendar data from Sacks et al. (2010).

To-do

  • fix overlaps with some cases
  • add associated climate data

License:

Code distributed under the terms of the MIT license.

See individual licenses for external data/tools used if any.

References

  • Sacks, W.J., D. Deryng, J.A. Foley, and N. Ramankutty (2010). Crop planting dates: an analysis of global patterns. Global Ecology and Biogeography 19, 607-620. DOI: 10.1111/j.1466-8238.2010.00551.x

About

Shiny app for generating cropping calendars from open data

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published