This section ensures that all required libraries for data extraction, manipulation, and visualization are installed and loaded. It combines general-purpose data science tools with football-specific analytics packages.
This section retrieves match data from the StatsBomb open dataset, filters for a specific competition and match, and prepares the data for analysis by cleaning and transforming spatial coordinates.
This section evaluates the offensive performance of both teams using shot maps enriched with expected goals (xG), allowing both spatial and probabilistic assessment of chance quality.
Interpretation:
- Manchester City generated 3 goals from 1.67 xG, indicating efficient
finishing above expectation.
- The shot distribution shows multiple attempts in and around the
penalty area, with at least one high-quality chance (large xG value near
goal).
- The spatial pattern suggests central penetration and effective chance
creation in dangerous zones.
Interpretation:
- Southampton scored 1 goal from 1.16 xG, which is broadly in line with
expectation.
- Their shots are more dispersed and slightly further from goal,
indicating lower average shot quality.
- Fewer high-probability chances suggest difficulty in breaking into
optimal shooting areas.
The xG timeline tracks the cumulative expected goals throughout the match, providing a dynamic view of how scoring opportunities evolved over time.
Interpretation:
- Manchester City shows a rapid early increase in xG, suggesting strong
early attacking pressure.
- Their xG curve grows steadily, indicating consistent chance creation
across the match.
- Southampton’s xG increases more gradually, with a noticeable rise
later in the match, implying delayed offensive momentum.
- The final totals (~1.7 vs ~1.2) confirm a moderate but clear advantage
for Manchester City.
Passing networks illustrate team structure by mapping player positions and pass connections, highlighting distribution patterns and key players in build-up play.
Interpretation:
- The network is dense and well-connected, particularly in
midfield.
- Players like Yaya Touré and Kevin De Bruyne appear central, acting as
key hubs.
- The structure indicates possession-based play with short passing
combinations and strong central control.
- High pass completion (77.6%) reinforces technical dominance and
control.
Interpretation:
- The pass network appears to be generated over a restricted time window
by the plotting function, likely due to its internal handling of
substitutions or lineup changes.
This section zooms into individual player behavior, showing pass direction, length, and type to better understand player roles within the system.
Interpretation:
- Highly active across the attacking half, with forward-oriented and
varied passes.
- Presence of long and high passes indicates creative playmaking and
vertical progression.
- His distribution pattern confirms his role as a primary offensive
orchestrator.
Interpretation:
- Passes are more central and conservative, with fewer progressive
actions.
- Distribution is largely lateral or short-range, indicating a holding
midfield role.
- Limited penetration suggests support rather than creation.
This section combines pass density (heatmap) and directional flow to visualize where and how teams move the ball across the pitch.
Interpretation:
- High pass density in central and advanced midfield zones.
- Flow vectors indicate forward progression with structured
buildup.
- Strong presence in the opponent’s half reflects territorial
dominance.
Interpretation:
- Heatmap shows concentration in midfield areas, especially
centrally.
- Less activity in the final third suggests difficulty progressing into
dangerous zones.
- Flow appears more horizontal and less penetrative.
This section analyzes defensive intensity through pressure events, highlighting where teams attempt to regain possession.
Interpretation:
## [1] "Pass" "Ball Receipt*" "Carry" "Pressure"
## [5] "Dispossessed" "Duel" "Foul Committed" "Foul Won"
## [9] "Interception" "Shot" "Goal Keeper" "Clearance"
## [13] "Ball Recovery" "Block" "Miscontrol" "Dribbled Past"
## [17] "Dribble" "Offside"
Interpretation: