Learn R Programming

tigris (version 0.3)

regions: Download a US regions cartographic boundary shapefile into R

Description

Download a US regions cartographic boundary shapefile into R

Usage

regions(resolution = "500k")

Arguments

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

See Also

Other national cartographic boundary functions: divisions; nation

Examples

Run this code
library(tigris)
library(leaflet)

us_regions <- regions(resolution = '20m')

leaflet(us_regions) %>%
   addTiles() %>%
   addPolygons()

Run the code above in your browser using DataLab