The R Graph Gallery





Welcome to the R graph gallery, a collection of charts made with the R programming language. Hundreds of charts are displayed in several sections, always with their reproducible code available. The gallery makes a focus on the tidyverse and ggplot2. Feel free to suggest a chart or report a bug: any feedback is highly welcome! Note that if you like this gallery, you'll love my newsletter!


One short, impactful dataviz tip delivered to your inbox each Saturday.

The Largest Collection of R Chart Examples


The R Graph Gallery boasts the most extensive compilation of R-generated graphs on the web.

Featuring over 400 examples, our collection is meticulously organized into nearly 50 chart types, following the data-to-viz classification. Each example comes with reproducible code and a detailed explanation of its functionality.

We begin each chart type with a foundational tutorial that outlines its core structure and purpose. Once you've grasped the basics, our step-by-step guides offer insights into elementary customizations. This ensures that your charts not only visualize data effectively but also resonate with your unique requirements.

Distribution


Image
Violin
Image
Density
Image
Histogram
Image
Boxplot
Image
Ridgeline
Image
Beeswarm

Correlation


Image
Scatter
Image
Heatmap
Image
Correlogram
Image
Bubble
Image
Connected scatter
Image
Density 2d

Ranking


Image
Barplot
Image
Spider / Radar
Image
Wordcloud
Image
Parallel
Image
Lollipop
Image
Circular Barplot
logo of a table
Table

Part of a whole


Image
Grouped and Stacked barplot
Image
Treemap
Image
Doughnut
Image
Pie chart
Image
Dendrogram
Image
Circular packing
Image
Waffle

Evolution


Image
Line plot
Image
Area
Image
Stacked area
Image
Streamchart
Image
Time Series

Map


Image
Map
Image
Choropleth
Image
Hexbin map
Image
Cartogram
Image
Connection
Image
Bubble map

Flow


Image
Chord diagram
Image
Network
Image
Sankey
Image
Arc diagram
Image
Edge bundling

General knowledge


Image
Cheatsheets
Image
Animation
Image
Interactivity
Image
3D
Image
Caveats
Image
Data art
Image
Colors

Best packages


The Best R Charts


We're on a relentless quest to showcase the finest graphs created with R.

Our team scours the internet, follows leading creators on Twitter, and examines Tidy Tuesday submissions. As a result, our R Graph Gallery is a curated collection of the most exceptional R-based visualizations.

Exploring these remarkable data visualization projects will not only inspire you but also provide templates and code snippets that you won't find in beginner-level tutorials.

Dive into this section and elevate your R data visualization skills to new heights. 🔥


Clean line chart with inline labels made with R Clean line chart with inline labels made with R Clean line chart with inline labels made with R Clean line chart with inline labels made with R Clean line chart with inline labels made with R Clean line chart with inline labels made with R Clean line chart with inline labels made with R Clean line chart with inline labels made with R Clean line chart with inline labels made with R Clean line chart with inline labels made with R Clean line chart with inline labels made with R Clean line chart with inline labels made with R Clean line chart with inline labels made with R


Check the best examples

What chart type should you use?


Choosing the right chart type for a dataset can be challenging.

The R Graph Gallery is connected to Data To Viz, a project that offers a decision tree to help you find the available chart type based on your data format. It then explores the various options to guide you toward the right choice!

Data to viz decision tree

Visit the project