Skip to content

Latest commit

 

History

History
61 lines (37 loc) · 1.58 KB

tut_template.md

File metadata and controls

61 lines (37 loc) · 1.58 KB

Tutorial name

Author

Tutorial Aims

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.

1. Import data in R

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("your_filepath")

# Load packages
library(ggplot2)
library(dplyr)

2. Create a plot

You can add more text and code, e.g.

# Add your code and comments here

3. The third section

Here you can add some more text if you wish.

# Add more code and comments

At 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:

Img

This is the end of the tutorial. Here is a summary of what we learned:

- something
- something else
- and a third thing

We can also provide some useful links:

For more on ggplot2, read the official ggplot2 cheatsheet.