nation {tigris}R Documentation

Download a US national boundary shapefile into R

Description

Download a US national boundary shapefile into R

Usage

nation(resolution = "5m", year = NULL, ...)

Arguments

resolution

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

year

the data year; defaults to 2022

...

arguments to be passed to internal function load_tiger, which is not exported. See Additional Arguments.

Additional Arguments

Additional arguments that can be passed in ... are:

See Also

Other national cartographic boundary functions: divisions(), regions()

Examples

## Not run: 
library(tigris)
library(leaflet)

boundary <- nation(resolution = '20m')

leaflet(boundary) %>%
   addTiles() %>%
   addPolygons()

## End(Not run)

[Package tigris version 2.1 Index]