Description Usage Format Source Examples
State boundaries are provided in US_states_geoms
, and county boundaries are provided
in US_counties_geoms
. All geometries were obtained from the US Census website (low resolution,
20m = 1:20,000,000) and subsequently processed as needed.
1 2 3 |
An object of class list
of length 4.
Shapefiles from: https://www.census.gov/geo/maps-data/data/cbf/cbf_counties.html
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | # lower 48 states only
ggplot(US_states_geoms$lower48) + geom_sf(fill = "#56B4E9", color = "grey30", size = 0.3, alpha = 0.5)
# true Albers projection, with AK and HI in their correct locations
ggplot(US_states_geoms$true_albers) + geom_sf(fill = "#56B4E9", color = "grey30", size = 0.3, alpha = 0.5)
# standard US Albers map, with AK artificially small
ggplot(US_states_geoms$us_albers) + geom_sf(fill = "#56B4E9", color = "grey30", size = 0.3, alpha = 0.5)
# revised US Albers map, with AK at its original size
ggplot(US_states_geoms$albers_revised) + geom_sf(fill = "#56B4E9", color = "grey30", size = 0.3, alpha = 0.5)
# County and state boundaries overlaid
ggplot(US_counties_geoms$albers_revised) +
geom_sf(size = 0.3) +
geom_sf(data = US_states_geoms$albers_revised, fill = NA, color = "red")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.