Sankey Diagrams of Irish Educational Transitions
A few weeks ago the Irish Times ran an extensive supplement on secondary student transition to higher education in Ireland. They were interested mostly in a league-table exercise to identify the “best” schools in the country, but in the process they compiled some pretty good data on “feeder schools” together with some decent discussion of the broader trends associated with the move from secondary school to third-level education. They also made their full table of data available as an Excel spreadsheet. I grabbed it at the time, partly out of local interest—I did my undergraduate degree in Ireland (at UCC) and went to one of the schools listed in the tables—and partly because I thought it might be useful for the data visualization mini-course I was teaching. We didn’t get around to using it, but yesterday evening and earlier today I cleaned up the data and took a look at it in R. I ended up in an interesting conversation with Brendan Halpin, a sociologist at the University of Limerick. As it turned out, he has done some more extensive work with an expanded version of this data.
My visualization interest was in Sankey diagrams, the sort of network flow charts you often see used to visualize the transfer of energy or cost or volume through some system. You can also use them to visualize simpler one-step origin and destination transitions, as when people start out in some range of places and end up in another—as with a mobility table, for example. In this case we have a two-mode table, where students start out in a secondary school located in some geographical area (a county, say), and end up going to a college located in the same or different place.
The D3.js javascript library can draw Sankey diagrams in the browser. Rendering diagrams like this in a web browser has some advantages over a static image. You can rearrange the nodes by dragging them, for instance, highlight pathways to get a better view, and see the actual numbers being graphed. The network3D library for R lets you do your data analysis in R and then produce D3 code for use in a webpage. It was this that I wanted to learn more about, so I took advantage of the Irish school transition data to do it.
A map of Irish Counties, courtesy of Wikipedia.
Ireland is not a large country. There are twenty six counties in the Republic. By population, the largest by far is Dublin, where about a third of the country’s people live. The Irish Times data organizes schools by county, except for Dublin which is broken up into Dublin City and Dublin County, with the city further subdivided into twenty two postal districts, labeled very nearly logically from Dublin 1 to Dublin 24—except there’s a Dublin 6W as well as a Dublin 6, and no Dublin 19, 21, or 23. The reason for this is that odd-numbered districts are generally north of the river Liffey, while even-numbered districts are south of the river. This divide has a strong element of social class, and I’ll return to it below.
Our data covers about 41,000 students who sat the Leaving Certificate in 2015 and went on to a third-level course. The Leaving Cert is a nationally-administered series of examinations, generally across seven subjects—three compulsory subjects (English, Irish, and Maths) and three or four optional ones (e.g. Physics, History, French, etc.) A student’s performance in these exams, coupled with the baseline availability of places at third-level and the general demand for those places, establishes one’s chances of getting in to the university program. A points system coordinates supply and demand for places. Writing these sentences is giving me an unpleasant sensation in my chest as I remember sitting my own Leaving Cert.
At any rate, we have county-level (and Dublin district-level) counts of students and the college they went to. The data track thirty one third-level institutions within Ireland. Students who left the country to go to college are not counted. Nor do the data cover students who exited the education system at or before the Leaving Cert. The institutions are of several different types. Roughly:
- Universities. Trinity College Dublin (TCD), University College Dublin (UCD), University College Cork (UCC), NUI Galway, Maynooth, the University of Limerick (UL), and Dublin City University. The data also includes Queens University Belfast and the University of Ulster, which are in Northern Ireland.
- Institutes of Technology shown below with their location name and an .IT suffix.
- Colleges of Education which train teachers, such as St Angela’s, Mary Immaculate College, the Marino Instiute, and the Church of Ireland College of Education.
- Recognized or Constituent Colleges, which include specialty institutes like the Royal College of Surgeons in Ireland (RCSI), the Shannon College of Hotel Management (SCHM), and the National College of Art and Design (NCAD).
With all that out of the way, here’s a Sankey Diagram showing transitions to higher education for students from the six counties of Munster. For convenience we’ll stick with raw counts, although of course relative percentage movement is also important. If you want to reproduce the figures below, the R code and the schools data are available on GitHub.
The Flow of Students from Munster into Third-Level Education in Ireland
As you can see, Cork people like to stay at home. Of the 4,700 students from the county, about 2,100 went to University College Cork, and 1,500 went to CIT, also in the city. So about 75% of the all transitioning third-level students from County Cork stay in the county for college. Sixty four students from Cork went to Trinity, and about a hundred to University College Dublin—about the same number combined as went to IT Waterford (153), and substantially fewer than went to the University of Limerick (238). This is what I did for college myself, incidentally. Having grown up in Cork city, I went to UCC as an undergraduate. It never really occurred to me to go anywhere else.
We see much the same pattern in Connacht, with people from Galway sticking to NUI Galway, Galway/Mayo IT, or maybe Athlone, Sligo, or Limerick. A trickle of brave souls head up to Trinity (52) or UCD (77).
The Flow of Students from Connacht into Third-Level Education in Ireland
Dubliners are not any more cosmopolitan, incidentally. As Brendan Halpin showed on Twitter, with more fine-grained maps, Dubliners are generally reluctant to cross the Liffey. As he remarks, “If you live in Blackrock/Dun Laoghaire TCD is too far so you get stuck in UCD”.

Dublin University Catchment Areas, courtesy Brendan Halpin (University of Limerick)
In addition to flow diagrams and maps, we can cluster the data to see how regions hang together. This next figure is based on percentage of students by county attending the various schools (rather than raw counts) and clusters areas based on the relative similarity of their sending profiles. We can plot the dendrogram radially (courtesy of R’s ape
library).

Irish Geographic Areas Clustered by Relative Similarity of College Destinations
As you can see, the cluster analysis recovers the underlying geography pretty well—counties that are geographically close to one another tend to be close in the dendrogram. (Bear in mind that the clustering algorithm just knows the destination profile of each county, not anything about where they’re located.) There’s also nice result for the Dublin districts. As I mentioned above, the North side of Dublin has odd-numbered postcodes, and the South side has even-numbered postcodes. The clustering cleanly separates North and South Dublin. Note also that the four Southside postcodes that cluster slightly by themselves—10, 12, 22, and 24, colored green—are Ballyfermot, Crumlin/Walkinstown, Clondalkin/Neilstown, and Tallaght.
In summary, the strongly local character of transitions to third-level education in Ireland isn’t surprising to people who know the country. It may seem rather parochial to someone raised on the cultural imagery of college life in the United States, where going to university is strongly associated with moving away and striking out on one’s own. But, on the one hand, the reality for many American students is quite different, of course, if only because the US higher education system is enormous, and plenty of people stay near to their place of origin for college. And on the other hand, while an awful lot of Irish people went to the school nearest them and never gave much thought to any other option, once they graduated many of those same people then left the country and never returned. I’m one of them.