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.
Cet exercice fait partie du cours
Analyzing US Census Data in R
Exercice interactif pratique
Essayez cet exercice en complétant cet exemple de code.
library(tigris)
# Get a counties dataset for Colorado and plot it
co_counties <- ___(___ = "CO")
___(co_counties)