Learn how to use the ggplot2 library in R to plot nice-looking graphs and find out how to customize them in this step-by-step guide.
Downloadable data is available to use with this tutorial at https://deltadna.com/blog/plotting-in-r-tutorial/ as is a written version.
Please note that the data source has now changed from ‘demo-co.deltacrunch’ to ‘demo-account.demo-game’ & all login details have been changed.
Loading in the data 01:10
Working with times using lubridate 03:05
Your first ggplot 05:58
Different geoms 08:37
Fixed variables and aesthetics 09:05
Converting a variable into a factor and accessing help 14:05
Bar graphs 16:05
Stacked bar graphs 17:07
Grouped bar graphs 18:34
Proportion bar graphs 20:06
Basic heatplot 21:30
Advanced heatplot, including labels, new colours and text 25:54