Fumiaki Nishihara
July 15, 2018
150

# Creating a hex map

This presentation shows an overview of hexagonal maps for electoral purpose and explains how to create a hexagonal map using R.

July 15, 2018

## Transcript

1. ### Creating a Hex Map Fumiaki Nishihara Tokyo.R 71 (2018-07-15) (@f_nisihara)

http://fnshr.info
2. ### What do you like? shapes Photo by Scott Webb on

https://unsplash.com/photos/INeZJfQxMLE

4. ### Shapes R Users Like? Hexagons Source: https://github.com/tidyverse/tidyverse.org/blob/master/static/images/hex-tidyverse.png (Top) https://github.com/tidyverse/tidyverse.org/blob/master/static/images/hex-ggplot2.png (Bottom

Left) https://github.com/tidyverse/tidyverse.org/blob/master/static/images/hex-tidyr.png (Bottom Right)
5. ### The 2017 UK General Election Results Source: https://commons.wikimedia.org/w/index.php?title=File:2017_UK_General_Election_map.svg&oldid=252618360 (Left) https://commons.wikimedia.org/w/index.php?title=File:2017_UK_general_election_constituency_map.svg&oldid=252618253

(Right) Both show the same results: the party won the seat in each electoral district.
6. ### The 2017 UK General Election Results Proportional Hexagonal Every district

is represented in the same size. Small districts are small in the map.
7. ### Blue districts (=Conservative seats) seem to be overwhelming because these

districts are relatively large.

9. ### Hexagonal map of electoral districts for the House of the

Representatives of Japan

11. ### Method 1) Specify coordinates of electoral districts 2) Make a

new geom_ func 3) Visualize with ggplot2 After the presentation, I found that creating a hexagonal map as an sf object is a better solution. See https://gist.github.com/fnshr/bd752961f12dee4670d0c2ab1923e0c9 Code: https://gist.github.com/fnshr/90d204e39ee68d1278cca7a28ce380a0