Skip to content

Instantly share code, notes, and snippets.

@stevenae
stevenae / README.md
Last active November 28, 2019 01:00
Interactive Choropleth

This example shows how it is possible to use crossfilter bar charts (up to any number) to visually subset a choropleth. The map above shows the population and per-capita income growth of the US from 2011-2012.

@stevenae
stevenae / CensusMatchR_Running_Code.R
Last active January 1, 2016 18:58
CensusMatchR running code
ZipDir <- "/small_zip_files/"
StatesDir <- "~/by_state_hh/"
StateFipsFile <- "~/state_fips.csv"
PumaCodeMapFile <- "~/new_puma.csv"
RegionFilenames <- c("ss10hil.csv") # you may specify multiple states
RegionPumas <- seq(03501, 03519, 1)
MatchVars <- c("HINCP","NOC","TEN","BLD")
Matches <- RunModel(1000) # use lower sample size to test, higher for greater accuracy
ZipCodes <- MatchesToZips(Matches)