/texas_pyramids

Shiny application to explore Texas county demographics

Primary LanguageROtherNOASSERTION

texas_pyramids

Shiny application to explore Texas county demographics http://urbanstudies.tcu.edu/research/open-data/tx-demographics/

This repository stores the source code for the Shiny application "Demographics of Texas Counties, 2010-2050," produced by the TCU Center for Urban Studies. The application displays population pyramids for all 254 counties in Texas by race and ethnicity, as well as projected future pyramids under a scenario of 50 percent of the 2000-2010 net migration rate. Data for the application come from the 2014 Texas Population Projections Program, Office of the Texas State Demographer.

The application is fully reproducible with an MIT license, so please clone and adapt the code in your own applications. To run the application locally:

  1. Install R from https://cran.r-project.org/
  2. Install RStudio from https://www.rstudio.com/products/RStudio/
  3. Install the following R packages: shiny, plotly, leaflet, shinythemes, sp, dplyr, and tidyr
  4. Run the following command: shiny::runGitHub('walkerke/texas_pyramids')