This function simply wraps tigris::zctas() to grab the zip code shape files for later plotting.

zipcode_shapes(
  state = "colorado",
  year = 2010,
  ...,
  progress_bar = interactive()
)

Arguments

state

character(1) default 'colorado', passed directly to tigris::zctas()

year

integer(1) default 2010, passed directly to tigris::zctas()

...

passed directly to tigris::zctas()

Geographic level

  • zipcode

See also

Examples

zipshapes = zipcode_shapes()
#> ZCTAs can take several minutes to download. To cache the data and avoid re-downloading in future R sessions, set `options(tigris_use_cache = TRUE)`
tmap::tmap_mode('plot')
#> tmap mode set to plotting
tmap::tm_shape(zipshapes) + tmap::tm_fill('ALAND10') + tmap::tm_borders(col="gray",alpha=0.5) + tmap::tm_basemap("Esri.WorldStreetMap")