Home / Tag Archives: R script

Tag Archives: R script

How much do countries spend on education?

The answer to the question depends on how it is measured.  The post  in statista, The Countries Spending the Most on Education by Martin Armstrong (9/12/2018) reports spending as a share of gross domestic product for primary, second and post-secondary non-tertiary education as well as tertiary education.  By this measure Norway spends the most. But, if the measure used is expenditure per student as a share of GDP per capita, the high spender is (south) Korea (Norway is fifth). Our graph here is a scatter plot of the two measures by country.

The data is from OECD.Stat. Go to Education and Training, Education at a Glance, Financial resources invested in education, Education finance indicators, and finally Expenditure per student as share of GDP per capita.  Under indicator at the top of the spreadsheet the measure can be changed.  Definitions of measures can be found in the OECD Handbook for Internationally Comparative Education Statistics (page 99).

Download the csv file and R-script used here.

How has Arctic sea ice volume changed?

The Guardian article Arctic’s strongest sea ice breaks up for first time on record by Jonathan Watts (8/21/18) includes an animated graph of Arctic sea ice volume by year. We produce a similar graph using monthly average ice volume from PIOMAS (source cited for the data in the article).  The graph clearly displays the change of ice throughout the year and the loss of ice throughout the years.

Freakish Arctic temperatures have alarmed climate scientists since the beginning of the year. During the sunless winter, a heatwave raised concerns that the polar vortex may be eroding.

This includes the Gulf Stream, which is at its weakest level in 1,600 years due to melting Greenland ice and ocean warming. With lower circulation of water and air, weather systems tend to linger longer.

A dormant hot front has been blamed for record temperatures in Lapland and forest fires in Siberia, much of Scandinavia and elsewhere in the Arctic circle.

The data from PIOMA includes monthly and daily ice volumes.  The R script and csv file that produced the graph here can be downloaded.