R graphics with ggplot2

Jan 08, 2020, Location TBD

Haley Jeppson, hjeppson@iastate.edu.
Sam Tyner, sctyner@iastate.edu.
Heike Hofmann, hofmann@iastate.edu.

This workshop is designed to help you get started with creating elegant and high quality graphics in R, based on the ggplot2 package. The course will be data centric, with lots of different data sets that illustrate examples of the different techniques used for different problems.

The course will be a mix of instruction and follow-up exercises. It will be held in a computer lab but you are encouraged to bring your own laptops, with software already loaded. A list of software will be available at this site several days prior to the workshop.

Lectures and timetable

Date Notes Lecture and Resources
9:00 - 10:30 Look at that! basic plots: scatterplots, boxplots, histograms, barcharts and more, some aesthetics: color, shape, ...
1-GraphicsIntro.R
1-GraphicsIntro.Rmd
ggplot2 cheat sheet
10:30 - 11:30 Basics Making maps using ggplot2
2-Basics.R
2-Basics.Rmd
2-Basics.pdf
11:30 - 12:30 Lunch Break
12:30 - 2:00 Layers of Graphics More detailed look at the ggplot2 package: layers, geoms
3-Layers.R
3-Layers.Rmd
noaa.rdata
animal.csv
2:00 - 2:30 What do we see? Discussion of faceting and cognitive aspects of human perception
4-Perception.R
4-Perception.Rmd
frame.csv
MovieSummary.csv
2:30 - 3:00 Polishing your plots Finishing touches: options, themes
5-PolishingPlots.R
5-PolishingPlots.Rmd


YourTurnSolutions.R
3:00 - 4:00 Learning RMarkdown Make reproducible reports with R results embedded in them.
6-RMarkdownBasics.R
6-RMarkdownBasics.Rmd


YourTurnSolutions.R

Learning outcomes

After the end of the this one course, we expect you to be able to do the following:

Getting Ready on your own machine

You can bring your own laptop and work on it, if you like to. In order to keep up with everybody else, we're asking that you start installing the following pieces of software ahead of coming to the workshop: