ComeçarComece de graça

TIGER/Line and cartographic boundary files

In addition to its TIGER/Line shapefiles, the US Census Bureau releases cartographic boundary shapefiles for enumeration units. TIGER/Line shapefiles correspond to legal boundaries of units, which can include water area and in turn, may not be preferable for thematic mapping. The Census Bureau's cartographic boundary shapefiles are clipped to the US shoreline and are generalized, which can make them superior for mapping projects. In this exercise, you'll compare the TIGER/Line and cartographic boundary representations of the US state of Michigan.

Este exercício faz parte do curso

Analyzing US Census Data in R

Ver curso

Instruções do exercício

  • Get a dataset of county boundaries for Michigan using default arguments.
  • Get an equivalent counties dataset for Michigan, but set cb = TRUE to request the cartographic boundary shapefile.
  • Plot both datasets, using add = TRUE for the second plotting call to create an overlay on the plot.

Exercício interativo prático

Experimente este exercício completando este código de exemplo.

# Get a counties dataset for Michigan
mi_tiger <- ___("MI")

# Get the equivalent cartographic boundary shapefile
mi_cb <- ___("MI", ___ = TRUE)

# Overlay the two on a plot to make a comparison
___(mi_tiger)
___(mi_cb, ___ = TRUE, border = "red")
Editar e executar o código