University Rankings

Academia R Maps

Seeing the world through QS university rankings.

Eugene https://fizzics.netlify.app
09-24-2021

Quacquarelli Symonds produces a list of the top ranked international universities every year. I thought it’d be interesting to see how this looks across the globe, not so much with a map, but with a silhouette showing the positions of the top colleges.

QS publish their data, but it’s a little awkward to scrape them, so I referred to this kaggle dataset with the figures for 2020.

kaggle_dataset <- read_csv("data/2020-QS-World-University-Rankings.csv",
              skip = 1,
              locale = readr::locale(encoding = "latin1"))

university_rankings <- tibble(university = kaggle_dataset$...3, 
                              rank = 1:nrow(kaggle_dataset))

Note that we had to change the encoding for the csv file (readr::locale(encoding = "latin1")) to capture international lettering.

Next, to find out where these universties are. I used both ggmap and tidygeocoder, finding an address isn’t so easy when all you have is the universities name, and then combined the two to fill out missed values. Only 6 of 1024 universities went unlocated.

# geos0 <- tidygeocoder::geo(address = z$university, method = "osm")
# geos1 <- ggmap::geocode(location = z$university, output = "latlona")
# geos2 <- bind_cols(geos0, geos1)
# geos <- geos2 %>%
#   mutate(lat = ifelse(is.na(lat...2), lat...5, lat...2),
#          long = ifelse(is.na(long), lon, long)) %>%
#   select(university = address...1, address = address...6, long, lat)

geos <- readRDS("data/geos")
university_rankings <- university_rankings %>% left_join(geos)

And now the map. No fancy simple features or projections, just locations specified by longitude and latitude. But that’s enough to see the outline of the world’s landmasses.

Lot’s of universities in Europe, East Coast America, and across the South and East of Asia. Also, note the crescent of colleges following the Southern outline of the Himalayas. And the near total absence of most of Africa.

I’d hope this picture will look very different in years to come, with a much wider spread of colleges across the globe.

Corrections

If you see mistakes or want to suggest changes, please create an issue on the source repository.

Reuse

Text and figures are licensed under Creative Commons Attribution CC BY 4.0. Source code is available at https://github.com/eugene100hickey/fizzics, unless otherwise noted. The figures that have been reused from other sources don't fall under this license and can be recognized by a note in their caption: "Figure from ...".

Citation

For attribution, please cite this work as

Eugene (2021, Sept. 24). Euge: University Rankings. Retrieved from https://www.fizzics.ie/posts/2021-09-24-university-rankings/

BibTeX citation

@misc{eugene2021university,
  author = {Eugene, },
  title = {Euge: University Rankings},
  url = {https://www.fizzics.ie/posts/2021-09-24-university-rankings/},
  year = {2021}
}