Premier League standings 2021 - Table Contest Submission

Premier League standings 2021

Authors: Greta Gasparac

Abstract: The table presents the data from the current season of the English Premier League. I created an interactive Shiny app, which displays the current standings and allows the user to check each team's previous matches, as well as check the standings in the previous match days of the season. The data is presented together with design choices that help the user comprehend information faster (colors, font weight, indicators etc.)

Full Description: I proudly present my first-ever Shiny app! Let me provide a more detailed description of all the functionalities that the table offers.

The table uses the Football-Data.org API in order to always display up-to-date data. When generated, the table shows standings of the current match day. For each team we can see:

  • position, together with an indicator telling us whether the team's current position is better, equal, or worse than the previous one,
  • logo and team name,
  • number of matches played,
  • goal difference (goals scored subtracted by goals received), where a positive number is green, zero is grey and negative is red,
  • number of wins, draws, losses, where the background color is selected based on all values in the column and allows us to quickly see if a team is standing out in any way,
  • number of points.

All rows are expandable. By clicking on the little arrow at the beginning of each row we open a new table that displays all the previous matches of the chosen team. We can see their opponent, whether they played home or away, the final score and the date of the match. At the beginning of each row we also have a little colored circle, which allows us to see whether the team won, lost or drew based on the color (green, red, grey, respectively).

expandable

The table also allows you to "travel in time"! The slider above allows us to pick any of the previous match days and see the league standings back then.

slider

All the code is documented in the docstrings package style and can be found in the repository together with the run requirements and other information.


Table Type: interactive-Shiny
Submission Type: Single Table Example
Table: Premier League standings
Repo: GitHub - ggapac/PL-table-shiny: Entry for the RStudio table contest 2021.
RStudio Cloud:
DT package used: false
gt package used: false
reactable package used: true
flextable package used: false
huxtable package used: false
kableExtra package used: false
Other packages:

Some very good features here. I chose a very similar theme, albeit Serie A, but yours blows mine out of the water. I am going to look around the code, but its a very crisp design with lots of useful features.

1 Like

Thanks a lot for such a nice compliment! As a Shiny-newbie I feel like I learned a lot and I hope my code is helpful to you as well!