The #30DayMapChallenge was initiated by Topi Tjukanov on Twitter. This is open to anyone who would like to show a map, whatever the software is. In this blog post, I will show maps made with R. I add constraints to myself for fun. This week, I will use {tmap} to create maps.This follows previous week blog post: #30DayMapChallenge: 30 days building maps (1) - ggplot2
Packages
library(dplyr)
library(sf)
library(raster)
library(readr)
library(tmap)
library(xml2)
library(purrr)
# remotes::install\_github("tylermorganwall/rayshader")
library(rayshader)
## Customize
my_blue <- "#1e73be"
# Test for font family
# extrafont::font_import(prompt = FALSE)
font <- extrafont::choose\_font(c("Nanum Pen", "Lato", "sans"))
Data
Get World data in {tmap} package
Get France shapefile Transform France into a regular grid of hexagons
See more: #30DayMapChallenge: 30 days building maps (2) - tmap
Top comments (0)