mapregion: Map a Geo Region

View source: R/mapregion.R

mapregionR Documentation

Map a Geo Region

Description

Map a Geo Region

Usage

mapregion(region, countymaps = NA, fipscodes = NA)

Arguments

countymaps

a spatialpolygonsdataframe. If NA, data is downloaded and read from the US Census

fipscodes

a data frame of fips codes for all counties with bannerized codes added. If NA, data from the tigris package is modified to work

regionfile

either a data frame or the file location of a csv with a column named "bannercode" of Banner-style FIPS codes

Value

a spatialPolygonsDataFrame of the region. As a side effect, generates a leaflet map of the counties


crazybilly/rmapcounties documentation built on Jan. 4, 2024, 6:32 a.m.