Euro 2016 Squads Part Deux

June 21, 2016
By

(This article was first published on R – Guy Abel, and kindly contributed to R-bloggers)

Between some of the games I had a go at replicating a plot from liberation.fr on the connections between Euro 2016 players and the country of birth using the circlize package in R. As with the previous post, the colours are based on the home shirt of each team and data scraped from Wikipedia. The values in the parenthesis represent the total number of players born in the respective country, which dictates their ordering around the circle. It is interesting to see just how many players represent countries that they were not born in. Only Romania has a 23 man squad completely full of players born in the country and no other Romanian born players representing other nations.

plot_circle2

I also modified some the my ggplot2 mapping code in my previous post to plot the links between players place of birth and the capital city of their national team: plot_pob1Click on the images if you want to explore. Here is an expanded view to illustrate all the longer distance relationships:plot_pob2All the code is up on my Github.

To leave a comment for the author, please follow the link and comment on their blog: R – Guy Abel.

R-bloggers.com offers daily e-mail updates about R news and tutorials on topics such as: Data science, Big Data, R jobs, visualization (ggplot2, Boxplots, maps, animation), programming (RStudio, Sweave, LaTeX, SQL, Eclipse, git, hadoop, Web Scraping) statistics (regression, PCA, time series, trading) and more...



If you got this far, why not subscribe for updates from the site? Choose your flavor: e-mail, twitter, RSS, or facebook...

Comments are closed.

Sponsors

Never miss an update!
Subscribe to R-bloggers to receive
e-mails with the latest R posts.
(You will not see this message again.)

Click here to close (This popup will not appear again)