View source: R/getcountymaps.R
getcountymaps | R Documentation |
Create a SpatialPolygonsDataFrame of all the counties in the continental US
getcountymaps(
filelocation =
"https://www2.census.gov/geo/tiger/GENZ2022/shp/cb_2022_us_county_20m.zip",
dest = "data",
local = F,
continentalonly = T
)
filelocation |
a character string describing where to get the shape files. By default, assumes the files should be downloaed from the US Census Bureau at https://www.census.gov/geo/maps-data/data/cbf/cbf_counties.html. Local file addresses can also be used. |
dest |
the local destination where the files should be downloaded to. |
local |
a logical value indicating whether filelocation is a local address or not. |
continentalonly |
a logial value indicating whether the resulting map data should only contain the continental US or the entire US |
a SpatialPolygonsDataFrame with polygons for each county within the United States.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.