Created
January 13, 2023 20:14
-
-
Save walkerke/960d80226de3d74334f0bceb378feef6 to your computer and use it in GitHub Desktop.
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
# remotes::install_github("walkerke/tigris") | |
library(tigris) | |
options(tigris_use_cache = TRUE) | |
dfw_box <- c(-98.324890,31.877558,-95.344849,33.493307) | |
dfw_ua_10 <- urban_areas(filter_by = dfw_box) | |
dfw_ua_20 <- urban_areas(year = 2020, criteria = "2020", | |
filter_by = dfw_box) | |
mapview::mapview(dfw_ua_10, layer.name = "2010", col.regions = "blue") | | |
mapview::mapview(dfw_ua_20, layer.name = "2020", col.regions = "red") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
No, I am based in the US... Never mind... I just restarted R and it works now! Thanks!