UNHCR Logo
  • Guidance
  • Chart types
  • Resources
  • Tutorials
  • Product gallery
Tutorials
  • R
  • Matplotlib
  • Plotly Python
  • D3
  1. Home
  2. Tutorials
  3. R

R


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 using the unhcrthemes package to simply apply the UNHCR data visualization style.

  • All
  • Change over time
  • Comparison
  • Correlation
  • Distribution
  • Geospatial
  • Part-to-a-whole
  • Ranking
Area chart
Area chart
Dot plot
Dot plot
Line chart
Line chart
Line column chart
Line column chart
Slope chart
Slope chart
Stacked area chart
Stacked area chart
Streamgraph
Streamgraph
Bar chart
Bar chart
Column chart
Column chart
Grouped bar chart
Grouped bar chart
Grouped column chart
Grouped column chart
Stacked bar chart
Stacked bar chart
Stacked column chart
Stacked column chart
Bubble chart
Bubble chart
Connected scatterplot
Connected scatterplot
Heatmap
Heatmap
Scatterplot
Scatterplot
Boxplot
Boxplot
Histogram
Histogram
Population pyramid
Population pyramid
Bubble map
Bubble map
Choropleth map
Choropleth map
100% stacked column chart
100% stacked column chart
Donut chart
Donut chart
Pie chart
Pie chart
Treemap
Treemap
Lollipop chart
Lollipop chart
Ordered bar chart
Ordered bar chart
Ordered column chart
Ordered column chart
Slope chart
Slope chart
Contact us
  • Guidance
  • Chart types
  • Resources
  • Tutorials
  • Product gallery

© UNHCR