Lionel Messi Free Kick Explorer - Shiny Contest Submission

Lionel Messi Free Kick Explorer

Authors: Lars Maurath

Abstract: The app visualizes all direct free kicks taken by Lionel Messi in the Spanish league for the seasons 06/07 to 18/19 and is based on free data from the provider StatsBomb.

Four panels show the free kick locations, their goal mouth impact, a table with further information and either a freeze frame of the free kick situation or a summary of the shot outcomes.

Full Description:

The app visualizes all direct free kicks taken by Lionel Messi in the Spanish league for the seasons 06/07 to 18/19 and is based on free data from the provider Statsbomb.

Four panels show the free kick locations, their goal mouth impact, a table with further information and either a freeze frame of the free kick situation or a summary of the shot outcomes.

Interactive Panels With Crosstalk

The four panels are linked via the crosstalk package that enables the sharing of user input between various shiny outputs. In this app, the brushing of the two plots and the highlighting in the table filter an underlying data frame. If there is a change to this data frame all shiny outputs dependent on it are updated.

Use cases

See how well Messi performs from free kicks in a certain region

Selecting a region in the top left plot shows where these free kicks ended up on the goal impact chart.
The table in the bottom left is filtered for these attempts and the bottom right shows a quick summary of their outcome, including an assessment on whether Messi has outperformed expectations in this region.

Find all free kicks that ended up in the top left corner

Selecting a region in the top right plot restricts the analysis to all free kicks that were placed in this region of the goal.

Filter for all free kicks against a certain goalkeeper

The table on the bottom left can be filtered. Once rows are highlighted this flows through to the other panels.

Analyze the freeze frame for a single free kick

If a single free kick is selected the app shows a freeze frame instead of a summary in the bottom right. It shows the position of all players for the moment the ball was struck.


Keywords: sports, soccer, statsbombr, crosstalk, DT
Shiny app: https://larsmaurath.shinyapps.io/messidashboard/
Repo: GitHub - larsmaurath/free-kick-dashboard: a shiny app to explore free kicks from Statsbomb free data set
RStudio Cloud: RStudio Cloud

Thumbnail:
image

Full image:

1 Like

like your work, Messi is the best.

1 Like