Tanya Shapiro
  • Home
  • About
  • Talks
  • Blog
  • Projects

English Premier League

R
interactive visual
tables
Interactive graphics exploring stats for teams competing in the English Premier League from 2018 to 2022.

Rankings Over Time

This project started out originally as a quick graphic for #30DayChartChallenge to explore the use of slopes for comparisons. I collected data about clubs in the English Premier League and created a ggplot2 graphic with ggbump to visualize their rankings across different seasons.

I shared it on Twitter, and soon after, someone commented “I wish there was a way to make it interactive!” Challenge happily accepted! I took the static ggplot and brought it to life with ggiraph. Try it out - hovering over different teams will accent them individually.

Team Season Stats

Here I used reactable and reactablefmtr to create a dynamic table of team stats. Rank includes a trend icon to see YoY delta of the team’s previous season rank. You can toggle between seasons using the select dropdown above the table.


Source: ESPN
 
    Created with Quarto
    Copyright © 2023 Tanya Shapiro. All rights reserved.
Cookie Preferences