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
# Setup | |
source("./transfers-0.R") | |
# Premier League 2020/21 | |
source("./transfers-1.R") | |
# Big Six spending | |
source("./transfers-2.R") | |
# Most expensive transfers | |
source("./transfers-3.R") | |
# Premier League trend | |
source("./transfers-4.R") |
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
if (!require("pacman")) install.packages("pacman") | |
pacman::p_load("dplyr", "ggplot2", "readr", "reticulate", "showtext") | |
# Utility function to save ggplots | |
save_image <- function(filename, plot, width = 7, height = 7) { | |
ggsave( | |
sprintf("%s.png", filename), | |
plot, | |
width = width, height = height, | |
units = "in", dpi = 96 |
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
if (!require("pacman")) install.packages("pacman") | |
pacman::p_load( | |
"dplyr", "ggplot2", "readr", "reticulate", | |
"sf", "showtext", "stringr" | |
) | |
# Utility function to save ggplots | |
save_image <- function(filename, plot, width = 7, height = 7) { | |
ggsave( | |
sprintf("%s.png", filename), |
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
#!/usr/bin/env python3 | |
# -*- coding: utf-8 -*- | |
from datetime import date | |
from string import punctuation | |
from sys import argv | |
import pathlib | |
import yaml | |