Comments (1)
Is this what you have in mind?
library(tigris)
#> To enable caching of data, set `options(tigris_use_cache = TRUE)`
#> in your R script or .Rprofile.
library(tidyverse)
library(sf)
#> Linking to GEOS 3.8.0, GDAL 3.0.4, PROJ 7.0.0; sf_use_s2() is TRUE
options(tigris_use_cache = TRUE)
my_states <- states(cb = TRUE, year = 2020) %>%
filter(NAME %in% c("Arizona", "Nevada", "California"))
my_zips <- zctas(cb = TRUE, year = 2020, filter_by = summarize(my_states))
ggplot() +
geom_sf(data = my_zips, fill = NA, color = "blue") +
geom_sf(data = my_states, fill = NA, color = "black",
linewidth = 1) +
theme_void()
Created on 2023-02-25 by the reprex package (v2.0.1)
from tigris.
Related Issues (20)
- Cannot retrieve blocks for 2022 HOT 1
- geo_join warning HOT 2
- Reverse Geocoding zipcode geometries HOT 2
- state_legislative_districts only provides upper chamber HOT 1
- 2023 data? HOT 1
- Possible to pass in longitude and lattitude value and obtain MTFCC code? HOT 1
- `erase_water()` should return `input_sf` if there is no overlap w/ water area HOT 1
- updated congressional districts? HOT 1
- Availability of geometries from 2006-2009 HOT 2
- Tract retrieval errors on some states rather than others HOT 2
- New CT county equivalents HOT 6
- Error of using tigris::call_geolocator_latlon() HOT 2
- Error in downloading 2022 congressional districts HOT 1
- School District FIPS Codes with leading zeros HOT 2
- `erase_water` fails with `year` 2010, 2011, or 2012 HOT 1
- availability of road data for the US from the early 2000s?
- No 2022 CBSA in Tiger database leads to error HOT 1
- tigris::roads() fails for some counties
- feat: Centers of Population
- Necessity of curl (through httr)? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tigris.