Tableau tricks: Adding colour to geomaps by continent or region

Tableau is a great tool for data visualisation. One major selling point of the product is its excellent mapping tools which make building visualisation fun and interpreting data a hell of a lot easier than in a flat table.

Recently, I was attempting to replicate a neat visualisation I saw on the Guardian’s data blog. Simply put, I wanted to measure some data by country but colour code the data by region as well. A trip through Tableau’s detailed online help and forums only turned up solutions that were either way too complicated or not quite suited to what I was chasing.

Essentially, I just wanted to map a variable by country and then colour those variables by the continent or region the country belong to. So, for example, all data points that represented a country in Asia got a particular colour, whereas any data points in the Americas got a different colour again.

I’ll freely admit that my skills in Tableau are developing. I spent about a day researching the issue until I stumbled across obvious help in the Tableau mapping tutorial. The dominoes began falling in my head around the 13 minute mark of this Tableau help video and I could complete my task.

The solution is remarkably easy.

First bring across the variable you want to measure in Tableau on a geomap. Using Tableau’s example Superstore dataset, I’ve brought the state variable across into the main view.

Second, you just need to simply need to drag across the variable you want to colour by. Using the same Superstore example, I’ll drag region on to the colour mark.

Now, you should see the different regions of the United States distinguished by different colours.

From there, you can then do all sorts of fun things like adjust the size of the bubbles by other variables. I just have to move the appropriate variable from the data pane on to the size option in the marks pain.

Here’s me using the sales variable to control the size of the circles above (also I’ve put a border on the circles for aesthetic reasons).

Now, to do this in terms of global data, you simply need a way to link countries with regions. If you have a dataset with a variable like countries, all you need to do is map those countries to a region and include that data in your Tableau project. This can easily be done using a standard UN country/region dataset.

Philip Burger has handily made one suitable for Tableau available via his website (nice one Phil!).

Importing the dataset into my Tableau project means I can link it up with my source data and begin the process of making a cool looking geomap visualisation similar to the one used in The Guardian example above.

Linking my tableau output data to the UN data set based on country. I’ve used a LEFT JOIN meaning all data in my source table is outputted and only matching country names are returned in the UN dataset.

And voila, by using the technique above, I can make nice looking geographical maps like the image below.

Pretty neat, huh?

 

 

IIE release next iteration of Open Doors data

It’s International Education Week in the United States and that has prompted the Institute of International Education (“IIE”), America’s premier professional association for international education research, to release the next iteration of the Open Doors report. For those in the know, the Open Doors report is a vital tool for measuring the flow of students around the world. While heavily US focused it’s nonetheless an excellent tool for examining student flows – even from Australia.

I’ve picked out some quotations from the press release of interest.

IIE has also highlighted how the US administration view international education as a vehicle in which to solve future problems:

“International education is crucial to building relationships between people and communities in the United States and around the world. It is through these relationships that together we can solve global challenges like climate change, the spread of pandemic disease, and combating violent extremism,” said Evan M. Ryan, Assistant Secretary of State for Educational and Cultural Affairs.

Things are interesting from a data point of view as well:

The number of international students enrolled in U.S. higher education increased by eight percent to 886,052 students in 2013/14, with 66,408 more students than last year enrolled in colleges and universities across the United States. This marks the eighth consecutive year that Open Doors reported expansion in the total number of international students in U.S. higher education. There are now 72 percent more international students studying at U.S. colleges and universities than were reported in Open Doors 2000, and the rate of increase has risen steadily for the past four years.

It seems that Australia isn’t as golden as once was in attracting US study abroad students

There were declines in the number of American students going to China, Australia, Argentina, India, Mexico, Ecuador, Israel, Chile, and New Zealand.

Student mobility, international and the power of data

Too good not to share.

Rob Malaki, Director of AIM Overseas (an Australian company specialising in organising short-course programs for higher education students) has put together a very interesting blog on using data and analytics to empower and measure student mobility. It’s a well-written post praising the power of data for empowering good business decisions in the international student recruitment and mobility space.

Rob makes a very pertinent point about the relationship between data and student mobility:

So where do student mobility teams start looking to answer the data collection/analysis question?
The starting point should be the following principle: measure and track everything you possibly can and use that data to streamline your systems and processes.

I suggest reading the entire article which is linked below.