To profit best from this course, you need to install both R and R Studio on your computer. See the install tutorial for further details.
The basic R system: R console (GUI) & packages
source("http://datavis.ca/courses/RGraphics/R/install-pkgs.R")
The R Studio IDE:
plot(object)
.This session is not being taught this year. The lecture notes and examples are available online.
- Lecture notes: 1up PDF; 4up PDF
lattice
package provides functions for drawing all standard plots (scatterplots, histograms, density plots, etc.), usually with more pleasing default results, but more importantly, allows you to compose collections (“small multiples”) of simpler graphs from structured subsets of the data.vcd
package uses grid graphics to produce a wide variety of plots for categorical data (mosaic plots, spine plots, sieve diagrams, etc.)ggplot2
takes a totally different, but arguably most powerful, approach to the construction of statistical graphs, based on the “Grammar of Graphics”.ggplot2
is part of a workflow for “tidy” data manipulation and graphics that is well worth learning.