Created
August 25, 2018 14:18
-
-
Save walkerke/302e938ee6096fd181e199668b1b57bc to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
library(tigris) | |
library(tidycensus) | |
library(tidyverse) | |
library(sf) | |
ma_income <- get_acs(geography = "county subdivision", | |
variables = "B19013_001", | |
state = "MA") | |
ma_subs <- county_subdivisions(state = "MA", cb = TRUE, class = "sf") %>% | |
select(GEOID) | |
ma_joined <- left_join(ma_subs, ma_income, by = "GEOID") | |
plot(ma_joined["estimate"]) |
Author
walkerke
commented
Aug 25, 2018
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment