R Charts Cheatsheet

This section is a repository of tips and tutorials to create graphs and charts in R. I primarily use the ggplot2 package to create the charts but occasionally use other packages. Reproducible code is published for each tutorial. Any feedback is most welcome so please do get in touch.


Violin plot in plotly

Violin plot in ggplot2

Histograms and density plots


2d density plots

Scatter plots

Change over time

Multiple Bar Charts in R

Creating a D3.js bar chart in R

Line chart with smoothed conditional mean

Bar charts in R with ggplot2

Area charts

Line charts

Bullet Charts


Chord diagram