This file contains hidden or 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(rayshader) | |
library(rayrender) | |
library(terra) | |
library(rnaturalearth) | |
library(MetBrewer) | |
library(raster) | |
library(exactextractr) | |
library(fasterize) | |
canopy_germany <- rast("germany/canopy_germany.tif") |
This file contains hidden or 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(tidyverse) | |
library(paletteer) | |
gradient_attempt <- data.frame(level = seq(1,300,by=1), | |
size = seq(30,0.1, by =-0.1)) | |
prmtns <- data.frame(x = seq(0,60,by=30), | |
y = seq(0,60,by=30))%>% | |
expand(x, y) | |
final = crossing(prmtns, gradient_attempt) |
This file contains hidden or 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(tidyverse) | |
library(rvest) | |
library(opencage) # need to get opencage API key and save as env variable below https://geocoder.opencagedata.com/pricing | |
library(sf) | |
library(rnaturalearth) | |
library(gganimate) # devtools::install_github('thomasp85/gganimate') | |
library(hrbrthemes) # devtools::install_github('hrbrmstr/hrbrthemes') | |
Sys.setenv(OPENCAGE_KEY = "xxxxxxxxxxxxxxxx") |
This file contains hidden or 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
"%p%" <- function(left, right){ | |
paste(left, right) | |
} |