R charts
The R programming language is a great tool for data visualization, capable of creating almost any type of chart with the help of ggplot2 and other packages. In this section, you will find reproducible code for multiple chart types. The examples focus on tidyverse and ggplot2, but some specific chart types might require extra packages. The required packages will always be mentioned at the top of the code chunks.
To apply the UNHCR data visualization recommendations, we use the unhcrthemes package that has been specifically built to provide UNHCR styles and colours out of the box. unhcrthemes is part of a set of packages to ease the production of statistical evidence and data stories.