UnhcrDataPackage
: A data package with UNHCR statistics Database
Install from github with devtools::install_github("unhcr/unhcrdatapackage")
.
The package is inspired from tutorial @ https://r-pkgs.org/data.html (the code used to build the package is in data-raw/build.R
). Data are pulled from HDX @ unhcr-population-data-for-world and are then conveniently packaged for R users intending to build data stories. If you are UNHCR Staff and want to learn R, visit UNHCR Learn & Connect- R training
This package can be used together with unhcRstyle
in order to quickly generate statistical reports with UNHCR Brand Style using a reproducible approach.
Note, that you can also explore data through Refugee Data Finder.
The package includes a series of vignettes that provides recipes to create re-usable charts in line with a Divisible Content Strategy. To explore how data can be displayed, you can browse the Chart Library using this link or the top menu links. For Designers, convenient versions of each plot in svg format (usable with Illustrator/Inkscape or Indesign/Scribus) is also available directly here.
You can also explore Country Statistical Focus, accessible here that provides visualization by country in relation to 6 dimensions of displacement: Categories, Origin, Demographics, Solutions, Processing and Source.
You can also submit request for new charts here
Contributions, specifically creation of new vignettes for the chart library are welcome! Please fork and submit pull request.
The data presented in this website consists of the following dataset:
Details is provided for each dataset
All data is disaggregated by year, since 1951 for stock figures, type of population, country/territory of asylum and origin.
Note that the term country/territory of asylum has a range of contexts depending on the dataset chosen
Country/territory of asylum and origin – the full list of UN countries is available on the UNSD methodology page . ISO3 country codes are included. UNHCR uses the following non-standard ISO3 country codes:
UNK
for Various/unknownSTA
for StatelessBefore publishing any statistics on the refugee statistics website, UNHCR applies safeguards to protect confidentiality. Small numbers less than five are rounded to the nearest multiple of five. Additionally data relating to pending asylum applications, new applications and decisions is rounded between five and ten.
Data between tables remains additive therefore the totals should be considered approximations.
pkgdown::build_site()