You can get all of the resources for this tutorial from this GitHub repository. Clone and download the repo as a zip file, then unzip it.
Open RStudio, create a new script by clicking on File/ New File/ R Script set the working directory and load the packages we'll need.
# Set the working directory
setwd("C:/data/git/CC-EAB-tut-ideas")
# Load packages
library(ggplot2)
library(dplyr)You can add more text and code, e.g.
# Add your code and comments here: going great until nowHere you can add some more text if you wish. No need for now...
# Add more code and commentsAt this point it would be a good idea to include an image of what the plot is meant to look like so people can check they've done it right. Replace IMAGE_NAME.png with your own image file:
This is the end of the tutorial. Here is a summary of what we learned:
We can also provide some useful links:
For more on ggplot2, read the official ggplot2 cheatsheet.
