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
options(warn=-1) | |
library(tibble) | |
library(extrafont) | |
library(scales) | |
loadfonts() | |
theme_foundation <- function(base_size=12, base_family="") { | |
thm <- theme_grey(base_size = base_size, base_family = base_family) | |
for (i in names(thm)) { | |
if ("colour" %in% names(thm[[i]])) { |
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(osmdata) | |
library(dplyr) | |
library(ggplot2) | |
#Define a place of interest | |
place <- "Kyiv Ukraine" | |
#First, get all admin boundaries associated with your request | |
all_boundaries <- opq(place) %>% | |
add_osm_feature(key = "boundary", |