This repository contains all working material pertinent to the Big Man Betweenness notebook, which was submitted to the 2023 NFL Big Data Bowl competition.
For those seeking to reproduce our work, we recommend the following:
- Install the specific version of
R
and required packages outlined inrequirements.txt
- Clone a remote copy of the repository to your local machine and navigate to the root directory:
git clone https://github.com/bscod27/big-man-betweenness.git
cd big-man-betweenness.git
- Download, unzip, and store the competition files in the
data
folder - Execute the scripts detailed below
The following scripts were used in this project and executed in chronological order:
batch_build.R
- takes the raw data, constructs frame-by-frame networks for each play, calculates network measures of interest, and creates weekly "builds" for downstream analysis- Note: this script has been programmed to be executed via the command line and fed a positional argument specifying the week/batch of interest; this was done to enable parallel computation, as the program is computationally expensive
analysis.R
- wrangles the builds into analysis-friendly form and produces the resultsgifs.R
- creates theigraph
network animationssample_space.R
- generatessample_space.png
, which is shown in the report
We use relative path notation in our scripts, as we assume the user sets their working directory to the root of the current folder structure.
Data, visuals, and other pertinent material are found inside the following folders:
data
- placeholder folder for the competition data, wrangled datasets, and images used to construct animationsimages
- contains all static imagesgifs
- contains all animations; also containsPython
documentation for the supplementaryplotly
animation