Title: | Contains Maps Used by the 'choroplethr' Package |
---|---|
Description: | Contains 3 maps. 1) US States 2) US Counties 3) Countries of the world. |
Authors: | Ari Lamstein <[email protected]> |
Maintainer: | Ari Lamstein <[email protected]> |
License: | BSD_3_clause + file LICENSE |
Version: | 1.0.1 |
Built: | 2025-01-30 05:07:23 UTC |
Source: | https://github.com/arilamstein/choroplethrmaps |
This data.frame corresponds to version 2.0.0 of the "Admin 0 - Countries" map from naturalearthdata.com The data.frame was modified by removing columns with non-ASCII characters. Also, I added a column called "region" which is the the all lowercase version of the column "sovereignt".
data(country.map)
data(country.map)
Note that due to the resolution of the map (1:110m, or 1 cm=1,100 km), small countries are not represented on this map. See ?country.names for a list of all countries represented on the map.
Taken from http://www.naturalearthdata.com/downloads/110m-cultural-vectors/
## Not run: # render the map with ggplot2 library(ggplot2) data(country.map) ggplot(country.map, aes(long, lat, group=group)) + geom_polygon() ## End(Not run)
## Not run: # render the map with ggplot2 library(ggplot2) data(country.map) ggplot(country.map, aes(long, lat, group=group)) + geom_polygon() ## End(Not run)
Names of all regions on the country.map data.frame. A data.frame that includes both English names and their iso2c equivalents.
data(country.regions)
data(country.regions)
data(country.regions) head(country.regions)
data(country.regions) head(country.regions)
A data.frame which contains a map of all 50 US States plus the District of Columbia. The shapefile was modified using QGIS in order to 1) remove Puerto Rico 2) remove islands off of Alaska that crossed the antimeridian 3) renamed the county "Dona Ana" (which is properly written with a tilde over the first "n") to "Dona Ana" because R CMD check emits a warning if data contains non-ASCII characters 4) some columns were added for convenience.
data(county.map)
data(county.map)
Taken from the US Census 2010 Cartographic Boundary shapefiles page (https://www.census.gov/geo/maps-data/data/tiger-cart-boundary.html) in May 2014. The resolutions is 20m (20m = 1:20,000,000).
## Not run: # render the map with ggplot2 library(ggplot2) data(county.map) ggplot(county.map, aes(long, lat, group=group)) + geom_polygon() ## End(Not run)
## Not run: # render the map with ggplot2 library(ggplot2) data(county.map) ggplot(county.map, aes(long, lat, group=group)) + geom_polygon() ## End(Not run)
choroplethr requires you to use the naming convention in the "region" column (i.e. the numeric version of the FIPS code - no leading zero).
data(county.regions)
data(county.regions)
?county.map
data(county.regions) head(county.regions)
data(county.regions) head(county.regions)
A data.frame which contains a map of all 50 US States plus the District of Columbia. The shapefile was modified using QGIS in order to 1) remove Puerto Rico and 2) remove islands off of Alaska that crossed the antimeridian 3) renamed column "STATE" to "region".
data(state.map)
data(state.map)
Taken from the US Census 2010 Cartographic Boundary shapefiles page (https://www.census.gov/geo/maps-data/data/tiger-cart-boundary.html) in May 2014. The resolutions is 20m (20m = 1:20,000,000).
## Not run: # render the map with ggplot2 library(ggplot2) data(state.map) ggplot(state.map, aes(long, lat, group=group)) + geom_polygon() ## End(Not run)
## Not run: # render the map with ggplot2 library(ggplot2) data(state.map) ggplot(state.map, aes(long, lat, group=group)) + geom_polygon() ## End(Not run)
choroplethr requires you to use the naming convention in the "region" column (i.e. all lowercase, full name).
data(state.regions)
data(state.regions)
Taken from http://www.epa.gov/envirofw/html/codes/state.html
data(state.regions) head(state.regions)
data(state.regions) head(state.regions)