README 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. Forked from: https://people.torproject.org/~dcf/graphs/ooni-coverage-20170428
  2. Graphs of the time and country coverage of OONI reports, derived from
  3. the OONI Measurement API's index of reports.
  4. == Howto
  5. Rscript graphs.R # leaves graphs in Rplots.pdf
  6. == Data sources
  7. ooni-index-20170414.json.xz
  8. JSON index of reports from the OONI Measurements API.
  9. wget -O ooni-index-20170414.json 'https://api.ooni.torproject.org/api/v1/files?limit=500000'
  10. xz -v ooni-index-20170414.json
  11. ooni-index.csv.xz
  12. ooni-index-20170414.json.xz converted to CSV.
  13. xz -dc ooni-index-20170414.json.xz | ./json2csv | xz -v > ooni-index.csv.xz
  14. country-codes.csv
  15. Maps ISO-3166 2-letter codes to country name and continent.
  16. More information: http://data.okfn.org/data/core/country-codes.
  17. wget http://data.okfn.org/data/core/country-codes/r/country-codes.csv
  18. 2016_Statistical_Annex_Table_1.xls
  19. Spreadsheet mapping country name to Human Development Index
  20. among other things. More information:
  21. https://en.wikipedia.org/wiki/Human_Development_Index
  22. https://en.wikipedia.org/wiki/List_of_countries_by_Human_Development_Index
  23. http://hdr.undp.org/en/composite/HDI
  24. wget http://hdr.undp.org/sites/default/files/composite_tables/2016_Statistical_Annex_Table_1.xls
  25. hdi.csv
  26. CSV of Human Development Index extracted from
  27. 2016_Statistical_Annex_Table_1.xls. Made by copying and pasting
  28. followed by manual editing to remove blank lines and headers.
  29. run.sh
  30. Produce graphs based on the specified tests (vanilla_tor, tcp_connect, meek_fronted_requests_test)
  31. == Requirements
  32. R version > 3.3.3 with the ggplot2 package
  33. Debian requirements installation: apt install r-base r-cran-ggplot2