Skip to content

dmongin/spain-map-layout

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Alternative layout for maps of Spain

This repo shows three approaches to create an inset map of Spain, which shows the Canary Islands and ensures that relative sizes are preserved.

Code

The first approach uses the tmap package and a ratio between the Spain continental territory and Canary Island to plot both on a map.

The second approach uses the tmap package and moves geometries representing Canary Island closer to the Spain continental territory.

The third approach uses the ggplot2 package and moves geometries representing Canary Island closer to the Spain continental territory.

Data

Spatial data allowing for alternative visualizations of Spain using the second approach is available in:

Acknowledgements

Created maps were inspired by https://github.com/aaumaitre/maps_Spain, aaumaitre/maps_Spain#1 (comment), and the visualizing geospatial data chapter of the Fundamentals of Data Visualization book.

Read the Geocomputation with R book to learn more about spatial data operations and visualizations.

About

Alternative layout for maps of Spain - code and data

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • R 100.0%