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
# Elevation lines map for the #30DayMapChallenge | |
# Author: Mirza Čengić | [email protected] | |
pacman::p_load(Rahat, tidyverse, raster, topo.ridges) | |
raster_bih <- getData(name = "alt", country = "BA") | |
raster_bih_agg <- aggregate(raster_bih, fact = 5) | |
raster_bih_agg[is.na(raster_bih_agg)] <- 0 |
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
# pkgs | |
pacman::p_load(tidyverse, polite, scales, ggimage, ggforce, | |
rvest, glue, extrafont, ggrepel, magick) | |
loadfonts() | |
## add_logo function from Thomas Mock | |
add_logo <- function(plot_path, logo_path, logo_position, logo_scale = 10){ | |
# Requires magick R Package https://github.com/ropensci/magick |