Expected Goals (xG) & Shot Timeline for Soccer/Football with {gt} - Table Contest Submission

Expected Goals (xG) & Shot Timeline for :soccer: with {gt}

Authors: Ryo Nakagawara
Affiliations: Data Scientist

Abstract: This time line table provides some more context about the shots that were taken throughout a single soccer match using data from understat.com. Using the code provided you can create your own table using understat's data consisting of 6 European :soccer: leagues (England, Germany, Russia, France, Spain & Italy) and going back to the 2014-2015 season.

Full Description: Tutorial blog post
Tutorial contains:

  • Motivation: An extension of some of the soccer viz I normally create and a desire to do something new.
  • Data: understat.com
  • Design Choices: Why I did what I did and some improvements that could still be made.
  • Code Breakdown: Full 3-part code tutorial from getting the data, cleaning and reshaping the data, and finally creating the table visualization with the {gt} package.

Link to full HTML Tables:

Screen shots:


Table Type: static-HTML
Submission Type: Tutorial
Table: https://rpubs.com/Ryo-N7/lfc-leeds-gt-table
Repo: https://github.com/Ryo-N7/soccer_gt_timelines
RStudio Cloud:
DT package used:
gt package used: true
reactable package used:
flextable package used:
huxtable package used:
kableExtra package used:
Other packages:

4 Likes