Skip to content

Instantly share code, notes, and snippets.

View Remo's full-sized avatar

Remo Laubacher Remo

View GitHub Profile
@hrbrmstr
hrbrmstr / cantons.R
Last active November 12, 2018 13:50
Swiss Cantons - R version of http://bl.ocks.org/mbostock/4207744
library(rgeos)
library(rgdal) # needs gdal > 1.11.0
library(ggplot2)
# map theme
devtools::source_gist("https://gist.github.com/hrbrmstr/33baa3a79c5cfef0f6df")
map = readOGR("readme-swiss.json", "cantons")
map_df <- fortify(map)