R script for country correlograms and HDI scatterplots