https://github.com/nowosad/us-map-alternative-layout
Alternative layout for maps of the United States - code and data
https://github.com/nowosad/us-map-alternative-layout
maps r spatial spatial-data
Last synced: 11 months ago
JSON representation
Alternative layout for maps of the United States - code and data
- Host: GitHub
- URL: https://github.com/nowosad/us-map-alternative-layout
- Owner: Nowosad
- Created: 2018-12-09T14:10:27.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2018-12-14T17:36:58.000Z (about 7 years ago)
- Last Synced: 2025-03-20T23:01:37.826Z (11 months ago)
- Topics: maps, r, spatial, spatial-data
- Language: R
- Homepage:
- Size: 602 KB
- Stars: 8
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.Rmd
Awesome Lists containing this project
README
---
title: "Alternative layout for maps of the United States"
output: github_document
---
```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = TRUE)
```
[](https://zenodo.org/badge/latestdoi/161046120)
```{r, echo=FALSE, fig.align='center', out.height=400}
knitr::include_graphics("figs/us_albers_alt.png", dpi = NA)
```
Maps of the United States often focus only on the contiguous 48 states.
In many maps, Alaska and Hawaii are simply not shown or are displayed at different geographic scales than the main map.
This repo contains [an R code](https://github.com/Nowosad/us-map-alternative-layout/blob/master/R/01_create_alternative_layout.R) to create an inset map of the USA, which shows all its states and ensures relative sizes are preserved.
## Data
Spatial data allowing for alternative visualizations of the United States is available in:
- [GeoPackage format](https://github.com/Nowosad/us-map-alternative-layout/raw/master/data/us_albers_alt.gpkg)
- [ESRI Shapefile format](https://github.com/Nowosad/us-map-alternative-layout/raw/master/data/us_albers_alt_shp.zip)
- [RDS format](https://github.com/Nowosad/us-map-alternative-layout/raw/master/data/us_albers_alt.rds)
## Acknowledgements
The code for map layout creation was adapted from the visualizing geospatial data chapter of [the Fundamentals of Data Visualization book](https://serialmentor.com/dataviz/geospatial-data.html) by [Claus Wilke](https://twitter.com/ClausWilke) and builds upon an idea from a blog post - [Making maps of the USA with R: alternative layout](https://nowosad.github.io/post/making-alternative-inset-maps-of-the-usa/).
Read [the Geocomputation with R book](https://geocompr.robinlovelace.net/) to learn more about spatial data operations and visualizations.