File:Norrington Table.svg

Original file(SVG file, nominally 1,219 × 703 pixels, file size: 877 KB)

Summary

Description
English: Norrington table rankings by year split by college. College ordered by mean score.
Date
Source Own work
Author D Wells

Licensing

I, the copyright holder of this work, hereby publish it under the following license:
w:en:Creative Commons
attribution share alike
This file is licensed under the Creative Commons Attribution-Share Alike 4.0 International license.
You are free:
  • to share – to copy, distribute and transmit the work
  • to remix – to adapt the work
Under the following conditions:
  • attribution – You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
  • share alike – If you remix, transform, or build upon the material, you must distribute your contributions under the same or compatible license as the original.

Source code

library(reshape2)
library(ggplot2)
library(ggrepel)
library(data.table)
# Data from https://www.ox.ac.uk/about/facts-and-figures/undergraduate-degree-classifications
# Load data
norrington <- fread("Norrington/Cleaned-Table 1.csv")

# make each row a score for each college in a given year
norrington <- melt(norrington, "V1")

# rename columns
names(norrington) <- c("College", "Year", "Score")

# calculate rankings
norrington[,Rank := as.integer(rank(-Score)), by = Year]

# order College by mean score
norrington$College <- factor(norrington$College, levels = norrington[, mean(Score, na.rm = TRUE), by = College][order(-V1)]$College)

# simplify years e.g. 2015/2016 -> 2016
norrington$Year <- as.integer(gsub("[0-9]+/", "", norrington$Year))

# create plot
ggplot(norrington, aes(Year, Rank)) +
  geom_line(size = 0.8) +
  scale_y_reverse(breaks = c(1, 10, 20, 30, 38), minor_breaks = 1:38) +
  theme(axis.text.x = element_text(angle = 45, hjust = 1))+
  facet_wrap(~College)
 
This W3C-unspecified chart was created with R.

Captions

Add a one-line explanation of what this file represents

Items portrayed in this file

depicts

18 December 2016

File history

Click on a date/time to view the file as it appeared at that time.

Date/TimeThumbnailDimensionsUserComment
current23:16, 18 December 2016Thumbnail for version as of 23:16, 18 December 20161,219 × 703 (877 KB)D WellsUser created page with UploadWizard
No pages on the English Wikipedia use this file (pages on other projects are not listed).

Metadata