JoGall / soccermatics

Tools for visualisation and analysis of soccer tracking and event data

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

To do list

JoGall opened this issue Β· comments

A rough list of functions and utilities I'd like to add to the package. Recommendations welcomed!

🚧 = under construction
πŸ’‘ = still just a pipedream

Visualisations

πŸ’‘ Post-match odds based on simulating shots
🚧 Voronoi diagrams / Delaunay triangulation / convex hull
🚧 Wrapper functions to animate metrics frame by frame
πŸ’‘ Defensive coverage plots

Advanced analytics

🚧 Wrapper functions for common metrics (xG, xA, forward progressions, PossAdjT&A, etc...)
πŸ’‘ Event sequence plots and possession sequence metrics (possession spell and final product, i.e. does it end in final third, end in shot, end in goal)
πŸ’‘ Directness, synchronisation of movement direction, space utilisation)
🚧 Space control / dominance (e.g. ratio of Voronoi areas / convex hull areas)
πŸ’‘ Goalscoring threat (xG in each frame based on view to goal based on distance / angle of ball from opposition goal, number of defending players in front of goal, number of attacking players nearby, etc..); similar to this
🚧 Pressing effectiveness (e.g. average distance of defending players from ball, area of bounding box formed by defending team, time for n nearest players to close gap after possession change, etc..)

Machine learning stuff

πŸ’‘ Infer individual ball possession
πŸ’‘ Infer shot and pass events
πŸ’‘ Modelling optimal positioning with deep imitation learning
πŸ’‘ Automated formation discovery

Misc.

🚧 Add option Juego de Posicion pitch markings
πŸ’‘ Make a geom_pitch layer as a less monolithic plotting function
🚧 New system for working across multiple data sources (i.e. transform StatsBomb / Opta / whatever data so they can be used in a single function for xG plots / passmaps / whatever)
🚧 Add to list of true pitch dimensions

theme argument with light, dark, and grass options added to soccerShotmap function.

Will add to soccerPitch function and its dependants soon.

Hi mate. Maybe you could be interested to add some code from "soccerAnimate" function that i just created in order to work with Stats insights tracking data.
Here: https://github.com/Bustami/DatoFutbol/tree/master/TrackingDataTest
Cheers