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

R


R is a powerful open-source language for data visualization, capable of creating almost any type of chart through ggplot2 and its wider ecosystem. In this section, you will find reproducible and editable source code for a wide range of chart types, using the unhcrthemes package to 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