A data.frame object with columns indicating names, ids, and the geometry to map.
Arguments
unit
type of USA unit to link
year
year of the analysis
scale
the scale of the map
unit_subset
character vector of unit names to extract
matchWith
the type of id
dir
local directory in which shape files are stored
use_cache
a logical value indicating whether to use the cache
use_internet
a logical value indicating wheter the coordinates are downloaded from https://github.com/mappinguniverse/geospatial. If FALSE the maps downloaded during package installation will be used