Preface v
Chapter 1: Graphics in R 1
Getting ggplot2 up and running 1
Packages in R 2
The Integrated Development Environment 2
RStudio 3
Eclipse and StatET 4
Emacs and ESS 5
The plotting environments in R 5
Standard graphics and grid-based graphics 7
Graphics and standard plots 8
Scatterplots with individual data points 11
Scatterplots with the line of one tree 13
Scatterplots with the line and points of one tree 15
Boxplots of the orange dataset 17
Boxplots with individual observations 19
Histograms of the orange dataset 21
Histograms with the reference line at the median value in red 23
Lattice and Trellis plots 25
Scatterplots with individual observations 28
Scatterplots of the orange dataset with faceting 30
Faceting scatterplots with line and points 32
Scatterplots with grouping data 34
Boxplots of the orange dataset 36
Histograms of the orange dataset 38
Histograms with the reference line at the median value in red 40