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.

Distribution

Violin plot in plotly

Violin plot in ggplot2

Histograms and density plots

Correlation

2d density plots

Scatter plots

Change over time

Line chart with smoothed conditional mean

Bar charts in R with ggplot2

Area charts

Line charts

Bullet Charts

Relational

Chord diagram