R graphics with ggplot2

Thursday, June 23 2016

Heike Hofmann, hofmann@iastate.edu.
Eric Hare, erichare@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. You are encouraged to bring your own laptops, with software already loaded. .

Slides and timetable

Time Slides Additional Resources
2:10 - 3:10 Setting Up This will make sure that everybody's system is up and running
0-Setup.R
Look at that! basic plots in the qplot framework: scatterplots, boxplots, histograms, barcharts and more, some aesthetics: color, shape, ...
1-GraphicsIntro.R
1-GraphicsIntro.Rmd
1-GraphicsIntro.pdf
ggplot2 cheat sheet
3:10 - 3:40 Break
3:40 - 5:30 Mapping data Making maps using ggplot2
2-PlotMaps.R
2-PlotMaps.Rmd
2-PlotMaps.pdf
states.health.stats.csv
states.sex.stats.csv
states.stats.csv
Layers of Graphics More detailed look at the ggplot2 package: layers, geoms
3-Layers.R
3-Layers.Rmd
3-Layers.pdf
noaa.rdata
animal.csv
Polishing your plots Finishing touches: options, themes
5-PolishingPlots.R
5-PolishingPlots.Rmd
5-PolishingPlots.pdf

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: