asheshwor / cropcal

Shiny app for generating cropping calendars from open data

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cropping calendar visualization

An app to visualize key dates for various crops using the Cropping Calendar dataset. Once you make a selection of the region using drop-down menus, the calendar will be displayed.

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

License:MIT License


Languages

Language:R 85.7%Language:HTML 14.3%