R and the Nobel Prize API

October 20, 2015
By

(This article was first published on What You're Doing Is Rather Desperate » R, and kindly contributed to R-bloggers)

The Nobel Prizes. Love them? Hate them? Are they still relevant, meaningful? Go on admit it, you always imagined you would win one day.

Whatever you think of them, the 2015 results are in. What’s more, the good people of the Nobel Foundation offer us free access to data via an API. I’ve published a document over at RPubs, showing some of the ways to access and analyse their data using R. Just to get you started:

library(jsonlite)
u     <- "http://api.nobelprize.org/v1/laureate.json"
nobel <- fromJSON(u)

In this post, just the highlights. Click the images for larger versions.

1. Gender

gender-category-1

There’s a gender gap in Nobel awards to say the least.

gender-time-category-1

In some categories, awards to women have increased in recent years.


2. Age

age-category-1

Laureates are in general rather old, with notable exceptions.

age-year-1

Laureates in most fields are getting older


3. Nationality

country-category-1

The US has many winners; but are the absolute numbers meaningful?

sankey

Migration of Nobel laureates; many roads lead to the USA


For more details and more charts, visit the document at RPubs.

Filed under: R, statistics Tagged: api, ggplot2, laureates, nobel, prizes, rest, rstats

To leave a comment for the author, please follow the link and comment on their blog: What You're Doing Is Rather Desperate » R.

R-bloggers.com offers daily e-mail updates about R news and tutorials on topics such as: Data science, Big Data, R jobs, visualization (ggplot2, Boxplots, maps, animation), programming (RStudio, Sweave, LaTeX, SQL, Eclipse, git, hadoop, Web Scraping) statistics (regression, PCA, time series, trading) and more...



If you got this far, why not subscribe for updates from the site? Choose your flavor: e-mail, twitter, RSS, or facebook...

Comments are closed.

Search R-bloggers


Sponsors

Never miss an update!
Subscribe to R-bloggers to receive
e-mails with the latest R posts.
(You will not see this message again.)

Click here to close (This popup will not appear again)