The R Graph Gallery





Welcome 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! Stay in touch with the gallery by following it on Twitter. Oh and if you want to get better at R, check my best tips and subscribe to the newsletter.


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


Violin
Density
Histogram
Boxplot
Ridgeline
Beeswarm

Correlation


Scatter
Heatmap
Correlogram
Bubble
Connected scatter
Density 2d

Ranking


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

Part of a whole


Grouped and Stacked barplot
Treemap
Doughnut
Pie chart
Dendrogram
Circular packing

Evolution


Line plot
Area
Stacked area
Streamchart
Time Series

Map


Map
Choropleth
Hexbin map
Cartogram
Connection
Bubble map

Flow


Chord diagram
Network
Sankey
Arc diagram
Edge bundling

General knowledge


Ggplot2
Animation
Interactivity
3D
Caveats
Data art

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