Plot Remix: Minutes Breakdown
This has been a breakout season for Vinicius Junior. He made first appearances for Real Madrid’s first team during the 2018/19 season. Vini impressed early on, but struggled with consistency and his decision making in the final third. This season he’s been reliable, scoring goals and providing for his teammates. As a result he’s been a constant in Madrid’s lineup. After the final matchday of the 2022 La Liga season I wanted to visualize Vini’s evolution into a regular starter.
I thought back to a plot I saw by Tom Worville (@Worville on Twitter) visualing Son Heung-min’s early career in Germany.
I couldn’t quite find an elegant webscraping/data solution to get the data in a workable format that I wanted. Unfortunately I copied html tables from Transfermarkt and saved the output in Excel.
Edit (9/3/2022): I hated the fact that I wasn’t able to create a fully autonomous solution to generate this plot. I’ve continued to toy around with a webscraping solution. Hoping to write a follow-up in the future.
Here’s my final plot!
To get the Real Madrid crest I used Thomas Mock’s add_logo()
function from his fantastic tutorial.
It took a little bit of time to understand some of the parameters, but I think it was a really nice touch.
You can reference my source code for this plot here — I’m happy to answer any questions about my process or code. Thanks for reading!