Alejandro Montoya
August 4, 2017
One of the most popular and successful sports video games ever developped is FIFA17, a soccer game that allows, not only to play matches between hundreds of real teams, but also to play the game as, for example, a head coach, or a scouter to help develop 1 player through all his career.
In order to be able to play these last 2 modes, the game provides the gamers data on multiple variables that measure the performance of the players. Some of this data was collected and made available as a free data set in the Kaggle.com web site, and it will be used to build maps showing different performance variable by the nationality of the players.
To publish these maps, we'll be using a Shiny application that shows in a map, different measures of the players coming from each country. The application allows the user to choose what kind of representation (between circle markers or country shape polygons) he / she prefers for visualizing these measures, as well as which measure to be showed (e.g. Total Players coming from a country, Avg. Rating of the player coming from a country or the Avg. Height / Weight of the same players).
This application is accesible at https://alemontoya.shinyapps.io/Fifa17PlayerStats/
The dataset contains information for 17,000+ players, with 50 different variables that measure players' performance like Strength, Balance, Vision, etc.
The following figure, shows the average rating for dribbling ability segregated by the player's preferred foot
summarise(group_by(fifaPlayersData, Preffered_Foot), "Avg Dribbling Rating" = round(mean(Dribbling),0))
# A tibble: 2 x 2
Preffered_Foot `Avg Dribbling Rating`
<fctr> <dbl>
1 Left 59
2 Right 53
Here's a Boxplot that shows the relationship between dribbling rating and preferred foot