Skip to content

Instantly share code, notes, and snippets.

@submachine
Created March 7, 2017 15:27
Show Gist options
  • Select an option

  • Save submachine/a93dc60ae905d472700cf749611a6c81 to your computer and use it in GitHub Desktop.

Select an option

Save submachine/a93dc60ae905d472700cf749611a6c81 to your computer and use it in GitHub Desktop.
HDI vs Irreligion Data
# HDI vs Irreligion;
# Source:
# https://en.wikipedia.org/wiki/List_of_countries_by_irreligion
# https://en.wikipedia.org/wiki/List_of_countries_by_Human_Development_Index
# gnuplot command line:
# echo "set xlabel 'Irreligion (% of population)'; set xrange [0:100]; \
# set ylabel 'HDI'; set term png size 1024,768; \
# set output 'hdi-vs-irreligion.png'; \
# f(x) = a*x + b; a=0.003;b=0.7; \
# fit f(x) 'hdi-vs-irreligion.data' using 2:3 via a,b; \
# plot 'hdi-vs-irreligion.data' using 2:3 pt 6 notitle, \
# '' using 2:3:1 \
# with labels font 'courier,10' offset 0,-0.5 notitle, f(x) notitle;" \
# | gnuplot
Country(ISO.3166-1) Irreligion(%pop) HDI
CN 90 0.727
SE 76 0.907
CZ 75 0.870
HK 70 0.910
NL 66 0.922
UK 66 0.907
IL 65 0.894
JP 62 0.891
DE 59 0.916
AU 58 0.935
# CH 58 0.930
KR 55 0.898
ES 55 0.876
# AT 54 0.885
AZ 54 0.751
VN 54 0.666
CA 53 0.913
FR 53 0.888
DK 52 0.923
# IE 51 0.916
LV 50 0.819
BE 48 0.890
IS 44 0.899
FI 42 0.883
BG 39 0.782
US 39 0.915
PT 37 0.830
BA 32 0.733
EC 28 0.732
MX 28 0.756
IT 24 0.873
UA 24 0.747
IN 23 0.609
MY 23 0.779
RU 23 0.798
PH 22 0.668
GR 21 0.865
RS 21 0.771
AR 20 0.836
PS 19 0.677
BR 18 0.755
LB 18 0.769
CO 17 0.720
RO 17 0.793
NG 16 0.514
ID 15 0.684
TR 15 0.761
PE 13 0.734
PO 12 0.843
PK 11 0.538
MK 10 0.747
AF 09 0.465
KE 09 0.548
FJ 07 0.727
GE 07 0.754
AM 05 0.733
BD 05 0.570
MA 05 0.628
PG 04 0.505
TH 02 0.726
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment