USboundary | R Documentation |
A boundary file for conterminous United States, of object type SpatialPolygonsDataFrame
from sp
package.
data(USboundary)
A sf
object. The projection is in Conus (Continental US) Albers, EPSG:5070. There are 49 polygons with a single variable for the state name.
Names of the 48 contiguous states, plus District of Columbia.
Shapefile downloaded from
link to: Shapefile of 50 US States hosted by ArcGIS).
Imported to R
with the rgdal
package as a SpatialPolygonsDataFrame
object from package sp
, and then the contiguous US states were subsetted from that object that included other US jurisdictions. The code that creates the data file from the raw data can be found at system.file("raw data/polyMaps/create_USboundary.R",package = "ZVHdata")
. It was subsequently converted to sf
using st_as_sf
function.
library(ZVHdata) library(sf) data(USboundary) summary(USboundary) plot(USboundary)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.