This file contains hidden or 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(tidyverse) | |
library(sf) | |
library(tigris) | |
library(ggiraph) | |
library(glue) | |
# Get map data from the Census | |
state_shapes <- states(cb = TRUE) %>% | |
# Make this column a number |
This file contains hidden or 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(tidyverse) | |
library(sf) | |
library(tigris) | |
library(plotly) | |
state_shapes <- states() %>% | |
# Make this column a number | |
mutate(GEOID = as.numeric(GEOID)) %>% | |
# Only keep state IDs less than 60 to get rid of Guam, etc | |
filter(GEOID < 60) %>% |