tracts(state, county = NULL, cb = FALSE, year = NULL, ...)
refresh
, which specifies whether or not to re-download shapefiles
(defaults to FALSE
).Census tract boundaries generally follow visible and identifiable features. They may follow nonvisible legal boundaries, such as minor civil division (MCD) or incorporated place boundaries in some states and situations, to allow for census-tract-to-governmental-unit relationships where the governmental boundaries tend to remain unchanged between censuses. State and county boundaries always are census tract boundaries in the standard census geographic hierarchy.
Other general area functions: block_groups
,
blocks
, counties
,
county_subdivisions
, places
,
pumas
, school_districts
,
states
, zctas
## Not run: ------------------------------------
# library(tigris)
# library(leaflet)
#
# tarrant <- tracts("TX", "Tarrant", cb = TRUE)
#
# leaflet(tarrant) %>%
# addTiles() %>%
# addPolygons(popup = ~NAME)
## ---------------------------------------------
Run the code above in your browser using DataLab