Skip to content

This repository will contain getting started material with R using the StatsBomb dataset.

License

Notifications You must be signed in to change notification settings

Friends-of-Tracking-Data-FoTD/FoundationsInR

Repository files navigation

FoundationsInR

This repository will contain getting started material with R. It will try to cover the topics of how to begin programming with R:

-Data transformation (working with scalars, arrays, vectors, lists, dataframes, matrices, data tables)
-Data visualization
-Performing analysis
-Interactive applications in Shiny

The code that is available at the moment is the following:

  • Draw_Pitch.R

    • A file that draws the pitch used for visualizing data on a soccer field. It hasn't yet be turned into a function, but the first two lines of code will let you set the pitch dimensions. It is set to 120 x 80 based on the dimensions used by StatsBomb.
    • Learn to create your own pitch from scratch with FC_rStats (https://github.com/FCrSTATS/Visualisations/blob/master/3.CreateAPitch.md)
  • Statsbomb.R

  • Statsbomb_Shiny_Part1.R

    • Most of the code is reused from Statsbomb.R except we now create a basic shiny application to visualize shot map information
  • Statsbomb_Shiny_Part2.R

    • An extension from Part 1 to build a fully functional interactive shot map via R Shiny. Goes more in-depth into the UI and Server pieces within an application.

Some additional repos that may help:

About

This repository will contain getting started material with R using the StatsBomb dataset.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages