This was one of the few visualizations I worked on during the 2014 US Open Tennis Championships. Thanks to Alex Bresler and Aragorn Technologies for the data and opportunity to work with a great group of people. In this one, we’ll take a look at player’s countries, particularly the potential flight paths to and from New York City. For this, connections between countries and NYC were created using great circles. We will also modify the opacity of connecting arcs based on the number of players traveling from a particular country.
Data on countries of US Open Players were gathered from the different brackets.
Latitude and longitude information of different countries
We do this by geocoding the countries using the function from ggmap which uses google map’s API.
Past experience of mine has suggested that some of the results of geocoding go off the mark. Although we could use this function with precise addresses, at times, we might want to use country names or names of institutions in different locations to geocode. So, some error should be expected. (The exact location of the geocoded spot for the US, for example, is in Kansas.) After manually checking the latitude and longitude information using google maps, information for three countries had to be changed. (For example, Bosnia was shown as being in Chile and the location referring to New Zealand was a marker off the coast in the ocean.) We manually correct this. (I would be interested in a different but accurate approach, if there’s one you are aware of.) And, let’s not forget geocoding New York City.
On to the great circles.
Final leg, the plot.
You can mess around with many parameters below. For example, the size of lines, colours of country borders, and a whole host of other things.