Skip to contents

Pitch Plots

Plots on a football/soccer pitch!

plot_convexhull()
Function for plotting convex hulls
plot_heatmap()
Plotting heatmap
plot_pass()
Plotting passes
plot_passflow()
Passflow plot function
plot_passnet()
Function for plotting pass networks
plot_shot()
Function for plotting shots
plot_sonar()
Function for plotting pass sonars
plot_voronoi()
Function for plotting voronoi diagrams on the pitch

Analysis Plots

Into the Scattergram!

plot_pizza()
Function for plotting percentile/pizza plots
plot_scatter()
Plotting scatter plots
plot_timeline()
Create timeline charts (xG) using 'understat' event data.
plot_trendline()
Function for plotting xG Trendline with FBref/ StatsBomb data.

Expected Threat & Possession Value (xT & EPV)

Functions for xT and EPV analysis

calculate_epv()
Calculating EPV for passes, carries, etc
calculate_threat()
Calculating xT for passes, carries, etc

Data Frames

Data frames housed within the package

EPVGrid
EPV calculation data for analysis
xTGrid
xT calculation data for analysis
SampleEventData
Sample event data frame
SampleSBData
Sample StatsBomb event data frame