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
install.packages("devtools") | |
devtools::install_github("mbjoseph/bbr") | |
library(bbr) | |
nba <- get_season(2025) | |
nba %>% | |
filter(team == "DEN") %>% | |
# arrange(desc(gs)) %>% |
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
# -- Load libraries | |
library(tidyverse) | |
library(glue) | |
library(ggpath) | |
# -- Read data | |
df <- read_csv("Downloads/20250222_shots_2024.csv") %>% |
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(ggpattern) | |
# -- Motivation: | |
# https://x.com/joedgallagher/status/1436300186188386307 | |
df2 <- read_csv("Downloads/shots_2024 3.csv") %>% | |
janitor::clean_names() |
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
# -- Created by Owen Thompson (@OTStats) | |
# 2024-12-10 | |
# -- Load libraries | |
library(tidyverse) | |
library(ggchicklet) | |
library(ggtext) | |
# -- Load data |
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
# -- Created by Owen Thompson (@OTStats) | |
# 2024-02-01 | |
# -- Load libraries | |
library(tidyverse) | |
library(ggpath) | |
# -- Import data | |
# Data downloaded on 2/2/24 from Moneypuck.com | |
df <- read_csv("Downloads/shots_2023 5.csv") |
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
# -- Created by Owen Thompson (@OTStats) | |
# 2022-09-29 | |
# -- Load libraries | |
library(tidyverse) | |
library(ggtext) | |
library(ggforce) | |
library(lubridate) | |
library(worldfootballR) | |
library(glue) |
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
# -- Load libraries | |
# library(cowplot) | |
# library(gt) | |
library(tidyverse) | |
library(showtext) | |
library(worldfootballR) | |
library(ggtext) | |
library(janitor) | |
library(glue) | |
library(ggsoccer) |
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
# -- Created by Owen Thompson (@OTStats) | |
# 2022-08-25 | |
# -- Load libraries | |
library(rvest) | |
library(polite) | |
library(tidyverse) | |
library(worldfootballR) | |
library(lubridate) | |
library(data.table) |
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
club | home_city | stadium | club_crest_url | |
---|---|---|---|---|
Athletic Bilbao | Bilbao | San Mamés | https://upload.wikimedia.org/wikipedia/en/9/98/Club_Athletic_Bilbao_logo.svg | |
Barcelona | Barcelona | Camp Nou | https://upload.wikimedia.org/wikipedia/en/4/47/FC_Barcelona_%28crest%29.svg | |
Real Madrid | Madrid | Santiago Bernabéu | https://upload.wikimedia.org/wikipedia/en/5/56/Real_Madrid_CF.svg | |
Valencia | Valencia | Mestalla | https://upload.wikimedia.org/wikipedia/en/c/ce/Valenciacf.svg | |
Sevilla | Seville | Ramón Sánchez Pizjuán | https://upload.wikimedia.org/wikipedia/en/3/3b/Sevilla_FC_logo.svg | |
Atlético Madrid | Madrid | Metropolitano Stadium | https://upload.wikimedia.org/wikipedia/en/f/f4/Atletico_Madrid_2017_logo.svg | |
Real Sociedad | San Sebastián | Reale Seguros Stadium | https://upload.wikimedia.org/wikipedia/en/f/f1/Real_Sociedad_logo.svg | |
Celta Vigo | Vigo | Abanca-Balaídos | https://upload.wikimedia.org/wikipedia/en/1/12/RC_Celta_de_Vigo_logo.svg | |
Villarreal | Villarreal | Estadio de la Cerámica | https://upload.wikimedia.org/wikipedia/en/b/b9/Villarreal_CF_logo-en.svg |
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
# -- Load libraries | |
library(tidyverse) | |
library(glue) | |
library(readxl) | |
library(magick) | |
# -- Read and prep data | |
# Manually pulled data from Vini's La Liga stats from Transfermarkt |
NewerOlder