Description Usage Format Examples
Data from shapefiles provided by the Census Bureau<e2><80><99>s MAF/TIGER geographic database at https://www.census.gov/geo/maps-data/data/cbf/cbf_state.html. State outlines are based on the 1:20m resolution level. Internal points, divisions and regions are based on TIGER/Line Shapefiles for states and equivalents in the 2016 release.
1 2 3 4 5 |
both objects are data frames consisting of variables of length ~13k:
long: geographic longitude
lat: geographic latitude
order: order of locations
piece: positive integer value, one for each separate area/island of a state
id: integer value uniquely identifying each state
group: character value - composite of id and piece, uniquely identifying each part of each state
STATEFP: FIPS state code
STATENS: GNIS state code
AFFGEOID: American FactFinder state code
GEOID: GEOID state code
STUSPS: US state code
NAME: name of state or state equivalent
ALAND: land area of the state/state equivalent in square meters
AWATER: water area of the state/state equivalent in square meters
REGION: integer of US region
REGION.NAME: name of US region
DIVISION: integer of US division
DIVISION.NAME: name of US division
INTPTLAT: latitude of interior point
INTPTLON: longitude of interior point
1 2 3 4 5 6 7 8 9 10 11 | states %>% ggplot(aes(x = long, y = lat)) +
geom_path(aes(group = group)) +
geom_point(data = states %>% map_unif(n = 1000), colour = "red", size = 0.25)
inset %>% ggplot(aes(x = long, y = lat)) +
geom_path(aes(group = group)) +
geom_point(data = inset %>% map_unif(n = 1000), colour = "red", size = 0.25)
division %>% ggplot(aes(x = long, y = lat)) +
geom_path(aes(group = group)) +
geom_point(data = division %>% map_unif(n = 1000), colour = "red", size = 0.25)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.