1
Preface
1.1
Learning objectives
1.2
Prerequisites
1.3
How we’ll be teaching this
1.4
Getting help
2
Introduction
3
Principles
4
Building a Plot
4.1
Import dataset
4.2
An example of a plot by ggplot
4.3
The ggplot grammar
4.3.1
DATA
4.3.2
Aesthetics mapping
4.3.3
Layers
4.3.4
Scales
4.3.5
Facets
4.3.6
Themes and other useful tricks!
4.4
Other plot types
4.5
Histograms
4.6
Boxplots
4.7
Barcharts
4.8
More info
4.9
Exercises
4.9.1
Ex1.
4.10
Ex2.
5
Common Graphics
5.1
Barchart
5.2
Dot chart
5.3
Histogram
5.4
Frequency polygon
5.5
Scatterplot
5.6
Scatterplot with smoother
Plotting data with R
2
Introduction