Getting Census boundary files with tigris
The US Census Bureau's TIGER/Line shapefiles include boundary files for the geography at which decennial Census and ACS data are aggregated. These geographies include legal entities that have legal standing in the U.S., such as states and counties, and statistical entities used for data tabulation such as Census tracts and block groups. In this exercise, you'll use the tigris package to acquire such boundary files for counties in Colorado and Census tracts for Colorado's Denver County, which covers the city of Denver.
This exercise is part of the course
Analyzing US Census Data in R
Hands-on interactive exercise
Have a go at this exercise by completing this sample code.
library(tigris)
# Get a counties dataset for Colorado and plot it
co_counties <- ___(___ = "CO")
___(co_counties)