Skip to content
Example code to produce PassSonars from event data.
R
Branch: master
Clone or download
Latest commit d787ab4 Jul 13, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
LICENSE Create LICENSE Feb 4, 2019
North Carolina Courage PassSonar.png Add files via upload Feb 4, 2019
README.md Update README.md Jul 13, 2019
StatsBomb PassSonars.R Update StatsBomb PassSonars.R Jun 8, 2019
createPitchETM.R Update createPitchETM.R Feb 4, 2019

README.md

PassSonar

Example code to produce PassSonars from soccer event data using R.

PassSonars are a way of visualizing pass direction and distance. Essentially polar histograms, the length of the bars indicate the normalized pass frequency for each angle bin, while the color represents the distance for each segment. These can be modified to indicate other metrics as well. PassSonars were initially conceived as positional overlays, but variations can include zonal passing characteristics, inverted to look at receptions, or used to look at throw-ins, among others.

This code will produce a PassSonar overlay for a 4-4-2 formation. alt text

The data used for this example comes from StatsBomb's free event data.

createPitchETM is modified from FC_Rstats.

Polar pass histograms by Ben Torvaney anteceded my independent development of PassSonars.

You can’t perform that action at this time.