https://github.com/bearloga/2010-us-census-shiny-app
Enables exploration of the 2010 US Census data from the UScensus2010* package(s) via a web interface created in R with Shiny.
https://github.com/bearloga/2010-us-census-shiny-app
Last synced: about 1 year ago
JSON representation
Enables exploration of the 2010 US Census data from the UScensus2010* package(s) via a web interface created in R with Shiny.
- Host: GitHub
- URL: https://github.com/bearloga/2010-us-census-shiny-app
- Owner: bearloga
- Created: 2013-01-17T00:18:19.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2013-05-12T04:04:09.000Z (about 13 years ago)
- Last Synced: 2025-03-24T13:44:12.575Z (about 1 year ago)
- Language: R
- Size: 280 KB
- Stars: 7
- Watchers: 3
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
2010 US Census Shiny App
========================
| By | Mikhail Y. Popov |
| :--- | :--- |
| email | [mpopov@alumni.cmu.edu](mailto:mpopov@alumni.cmu.edu) |
| web | [http://www.mpopov.com](http://www.mpopov.com) |
| demo | [live demonstration](http://shiny.mpopov.com:3838/census/) |
| related | [Guide to Shiny Server on Amazon EC2](http://mpopov.com/post/40976561625/shiny-server-amazon-ec2-guide) |
Enables exploration of the 2010 US Census data from the [UScensus2010* package(s)][1] via a web interface created in R with Shiny.
![Preview of the resulting web app.][3]
The data on the counties, tracts, block groups, blocks, and CDPs totals 4.7 GB, which will take a while to download. However, you only need to download county, tract, and block group data which is less than 500 mb. When you've downloaded the packages, run:
```
install.packages(c("maptools","maps"));
install.packages(c(
"UScensus2010county_1.00.tar.gz",
"UScensus2010tract_1.00.tar.gz",
"UScensus2010blkgrp_1.00.tar.gz",
# "UScensus2010cdp_1.00.tar.gz", # currently not needed
# "UScensus2010blk_1.00.tar.gz", # currently not needed
"UScensus2010_0.11.zip"
), repos = NULL, type = "source")
```
Assuming you've installed the [shiny package][2] and that **shinyapp** is a folder in your working directory, run:
```
shiny::runApp("shinyapp")
```
Still need to add the remaining census variables because Total Population and Population Density are not the most exciting to study. ***I'll be adding features over time.*** For example, I'm considering incorporating the Public Use Microdata Sample files from the American Community Survey (PUMS ACS)...eventually.
Cheers!
[1]: http://lakshmi.calit2.uci.edu/census2000/
[2]: https://github.com/rstudio/shiny
[3]: https://github.com/bearloga/2010-US-Census-Shiny-App/blob/master/preview.png?raw=true