Extracts the polygons in the supplied shape file that correspond to the state specified, and adjusts them to appear to the lower-left of the continental U.S.
1 | adjust_states(shapes, state, geo, year, resolution)
|
shapes |
A 'SpatialPolygonsDataFrame' |
state |
Character scalar equal to either 'alaska' or 'hawaii' |
geo |
Character vector giving the geography of the shapefile (e.g., 'state', 'cbsa') |
resolution |
Character scalar given the resolution of the shape file |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.