mapregion | R Documentation |
Map a Geo Region
mapregion(region, countymaps = NA, fipscodes = NA)
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 |
a spatialPolygonsDataFrame of the region. As a side effect, generates a leaflet map of the counties
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.