Skip to content

Instantly share code, notes, and snippets.

@szfh
szfh / xg_facet_plot.R
Last active December 23, 2021 14:10
xg_facet_plot.R
# install.packages("tidyverse","ggplot2","worldfootballR") # run this line to install packages used in this script
{
library(tidyverse) # load packages
library(ggplot2)
library(worldfootballR)
}
# download data
results <- worldfootballR::get_match_results("ENG","M",2022) # download data from fbref