My FPL 2021-2022

Using RStudio and Excel, I’ve generated several charts to illustrate some final scores from the Fantasy Premier League Draft that I played in with a few friends throughout the 2021/2022 season.  Metrics including points scored, points conceded, points difference, ranking, and overall league points were generated into long form in Excel as the 38 gameweeks progressed.

The first chart was issued in Excel and was steadily created as the data was collated into the spreadsheet.  It follows the overall league table throughout the season, with the colored lines representing the gameweek points total which indicates the overall ranking of each team. An uninterrupted and steeply angled line illustrates consecutive wins for the selected team.

Moving to the charts generated in RStudio, the first depiction includes a circular bar chart of the overall points scored for each team.  The usefulness of this chart is how it illustrates so many totals in such a small area, for example DH scoring over 50 for the first three gameweeks, whilst also offering the data in an easily viewable mode.   

The time-series heatmap below uses the same data as the circular bar chart, but a continuous scale is applied to the data display.  It might be a little more difficult to highlight a specific point score, but it is useful in showing general trends across multiple gameweeks, such as DW’s high scoring between week 25 and 30. This was made using the geom_tile function and the Color Brewer package.  

Using the ggstatsplot package, I’ve generated a violin plot of the points scored throughout the season.  This chart is useful for identifying the clustering of scores, such as JF at around 45 points, and also the median for each team.  In this case, n denotes the number of game weeks in a Premier League and Fantasy season, and I enabled the outlier tagging to show when each team hit their single highest total.  

The final few depictions illustrate how each team points scored differ from the points conceded. Dumbbell charts are great for showing how two totals differ, with MW demonstrating a wide range in scored and conceded points in this example.  Following this with a beeswarm chart highlights the individual figures of these metrics.  I used the patchwork package to combine a summary table of some other useful statistics with the beeswarm chart.    





References

Patil, I. (2021). Visualizations with statistical details: The 'ggstatsplot' approach. Journal of Open Source Software, 6(61), 3167, doi:10.21105/joss.03167

Holtz, Y. (2018). Circular barplot with groups. The R Graph Gallery. Retrieved June 20th, 2022, from https://r-graph-gallery.com/297-circular-barplot-with-groups.html 




Comments