This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For #30DayMapChallenge 2022 Day 14 Hexagon | |
# Make an Eckert II projected world map, copying the idea from | |
# https://twitter.com/abiyugiday/status/1592065754903744513 | |
library(sp) | |
library(sf) | |
library(rnaturalearth) | |
library(maptools) | |
library(ggplot2) | |
library(ragg) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# #30DayMapChallenge 2022 - Day 12 - Scale | |
# Animate comparisons between NZ and other countries | |
# I'm not fully confident that the reprojection/translation approach is | |
# 100% accurate, but that's the fun of the challenges :-) | |
library(glue) | |
library(sf) | |
library(dplyr) | |
library(rnaturalearth) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Animate views of all the Rata Streets across New Zealand | |
library(magrittr) | |
library(glue) | |
library(dplyr) | |
library(stringr) | |
library(purrr) | |
library(sf) | |
library(rmapshaper) | |
library(ggplot2) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# #30DayMapChallenge 2022 | Day 16 | Minimal | |
# Inspired by https://twitter.com/benhur07b/status/1590124042245181440 | |
# -- David Friggens, November 2022 | |
library(readr) | |
library(sf) | |
library(dplyr) | |
library(stringr) | |
library(tidyr) | |
library(purrr) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# A simple test of the topogram package's functionality | |
# Mostly copying the tutorial https://dreamrs.github.io/topogram/articles/topogram.html | |
library(readr) | |
library(dplyr) | |
library(sf) | |
library(rmapshaper) | |
library(topogram) | |
library(Manu) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#30DayMapChallenge 2022 - Day 10 - A Bad Map | |
# The core idea is to label colour-named seas with the wrong colours. | |
# Extra levels of badness roled out as I started making it - | |
# "once you flop you can't stop!" | |
library(sf) | |
library(dplyr) | |
library(rnaturalearth) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For #30DayMapChallenge 2022 - Day 09 - Space | |
# Liberally borrowing from https://github.com/gkaramanis/30DayMapChallenge/tree/main/2022/07-raster | |
# -- David Friggens, November 2022 | |
library(raster) | |
# Note: raster version 3.5-29 works and 3.6-2 somehow explodes everything :-/ | |
library(marmap) | |
library(tidyterra) | |
library(sf) | |
library(ggplot2) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# A map of Wellington streets coloured by elevation, adapting from | |
# https://github.com/BlakeRMills/30DayMapChallenge/tree/main/Day%2021%20(Elevation)/City%20Maps | |
# Made for #30DayMapChallenge 2022 - Day 08 - OpenStreetMap | |
# (My OSM access was acting up, but most of the NZ street data there comes from | |
# LINZ anyway, so may as well go straight to the horse's mouth) | |
# -- David Friggens, November 2022 | |
library(elevatr) | |
library(raster) | |
library(dplyr) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Map of South Pacific islands, drawing a line from each to the nearest larger island | |
# David Friggens, November 2022 | |
# Adapting https://gist.github.com/dakvid/982a017f46556806e33fd3b520877ce2 | |
library(dplyr) | |
library(tidyr) | |
library(sf) | |
library(ggplot2) | |
library(sysfonts) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
library(dplyr) | |
library(sf) | |
library(ggplot2) | |
library(patchwork) | |
library(sysfonts) | |
library(showtext) | |
showtext_auto() | |
library(ragg) | |
# Read data -------------------------------------------------------------- |