R/US_states_geoms.R

#' Various projections of the states of the USA
#' 
#' 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.
#' @source
#' Shapefiles from: \url{https://www.census.gov/geo/maps-data/data/cbf/cbf_counties.html}
#' 
#' @examples
#' # 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")
"US_states_geoms"

#' @rdname US_states_geoms
"US_counties_geoms"
clauswilke/dviz.supp documentation built on Aug. 25, 2020, 2:12 a.m.