divisions: Download a US Census divisions cartographic boundary...

Description Usage Arguments See Also Examples

View source: R/national.R

Description

Download a US Census divisions cartographic boundary shapefile into R

Usage

1
divisions(resolution = "500k", year = NULL, ...)

Arguments

resolution

The resolution of the cartographic boundary file. Defaults to '500k'; options include '5m' (1:5 million) and '20m' (1:20 million).

year

the data year (defaults to 2015).

...

arguments to be passed to the underlying 'load_tiger' function, which is not exported. Options include refresh, which specifies whether or not to re-download shapefiles (defaults to FALSE).

See Also

Other national cartographic boundary functions: nation, regions

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## Not run: 
library(tigris)
library(leaflet)

divs <- divisions(resolution = '20m')

leaflet(divs) %>%
   addTiles() %>%
   addPolygons()

## End(Not run)

tigris documentation built on May 29, 2017, 7:23 p.m.