Scripts for analyzing NBA sportvu motion data
HTML R
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
anim_plays
data
.DS_Store
.gitignore
Animate_Play.R
Basic_EDA.R
Chull_NBA_SportVu.Rmd
Chull_NBA_SportVu.html
EDA_NBA_SportVu.Rmd
EDA_NBA_SportVu.html
Extract_Three_Point_Plays.R
PBP_NBA_SportVu.Rmd
PBP_NBA_SportVu.html
README.md
Traj_NBA_SportVu.Rmd
Traj_NBA_SportVu.html
Velocity_NBA_SportVu.Rmd
Velocity_NBA_SportVu.html
_function_fullcourt.R
_function_halfcourt.R
_functions.R
gg_play.R
three_second_violations.R

README.md

NBA_SportVu

Code for exploring the NBA SportVu motion data, more information at my blog. You can download the games from this repo.

_functions.R - Various functions that I have written. The functions include sportvu_convert_json for importing motion data from a json to a data frame. Other functions can extract distances players have traveled and create a matrix of player to player distances.

EDA_NBA_SportVu.Rmd - A markup document showing basic EDA on the movement data. Online.

PBP_NBA_SportVu.Rmd - A markup document showing how to merge play by play data with the SportVu movement data. Online.

Chull_NBA_SportVu.Rmd - A markup document for measuring player spacing using convex hulls with the SportVu movement data. Online.

Velocity_NBA_SportVu.RMd - A markup document for measuring player velocity, acceleration, and jerk using the NBA SportVu movement data. Online.

Traj_NBA_SportVu.Rmd - A markup document sharing a few different ways to analyzing player and ball trajectories. Online.