The Timeless Rivalry: Ronaldo vs Messi
An investigation tracking Messi and Ronaldo’s performance trends
Introduction
In the world of football, the names Cristiano Ronaldo and Lionel Messi resonate as symbols of unparalleled talent and sporting prowess. Their enduring rivalry has fueled debates among fans, pundits, and analysts, each vying to determine the superior player. However, amidst the fervour of subjective opinions, lies an opportunity to uncover objective truths through data-driven analysis. This project embarks on a journey to delve into the goal-scoring exploits of Ronaldo and Messi, employing statistical methods to dissect their performances across diverse dimensions. By meticulously examining their records spanning countries, competitions, opponents, matchdays, and goal times, this endeavour aims to provide a comprehensive understanding of their impact on the beautiful game.
Project Overview
The project unfolds in several phases, commencing with the meticulous wrangling of datasets to ensure data cleanliness and coherence. Following this, bespoke functions are crafted to calculate and visualize the number of goals scored by each player based on specified criteria, such as opponent, competition, matchday, and goal time. Leveraging these functions, the data is analysed and visualized to unearth insights into Ronaldo and Messi’s goal-scoring prowess, facilitating a nuanced comparison of their performances over the years.
Methodology
The methodology encompasses a systematic approach to data wrangling, analysis, and visualization. It begins with the loading of necessary libraries and datasets, followed by rigorous data cleaning and preparation to ensure accuracy and consistency. Key functions are then defined to compute and visualize the goal-scoring data, enabling comprehensive exploration across various dimensions. Through data analysis and visualization techniques, including bar charts and maps, the project illuminates the spatial and temporal dynamics of Ronaldo and Messi’s performances, offering valuable insights into their contributions to the sport.
Topic One
For the first topic, a series of dataframes were created in succession to manipulate the player data alongside map data. Ronaldo and Messi’s data were merged and subsequently joined to geometric data of the world. The data was then leveraged and reduced to merely the players, their countries and the number of goals in such. Another dataset was then produced of the centers of country’s co-ordinates to allow for the labelling of the countries involved. Once complete, the information was joined via ggplot and coalesced to gganimations; while a separate plotly diagram was created to allow for an interactive version of the information, over the entire timespan as opposed to yearly.