Plotting data with R
Ian Handel
1 Preface
Here we’ll talk about…
1.1 Learning objectives
- Be able to explain the purpose of statistical graphics
- Be able to list and explain the principles of good statistical graphic design
- Be able to explain the principles of ‘The Grammar of Graphics’
- Be able to design, on paper, appropriate plots for simple data sets
- Be able to use the
ggplot
package to produce basic plots - Be able to list sources of help for
ggplot
1.2 Prerequisites
In order to complete this module you’ll need to have R and Rstudio (free desktop version) installed.
You’ll need to have a basic ability with R so that you are familiar with data types and data.frames. You’ll need to be able to run functions and be able to give arguments to R functions. You’ll need to be able to enter R code into RStudio, ideally by writing a script file. These skills are covered in [list relevant modules] modules.
1.3 How we’ll be teaching this
This module will make most sense if you start at the beginning and work though to the end. Once you’ve done that it should be a helpful reference for making plots for your own projects. As you work though it will help to copy and paste code into either the RStudio console or, even better, to build an R script that contains the code as you work though with your own comments where appropriate.
1.4 Getting help
Online help sources….
Course help….