ggplot2
After going over the course syllabus, we’ll go over the following three lessons:
x
and y
aestheticsConcepts from today’s class (and next class) are closely mirrored by the following resources, which introduce ggplot2
, although are organized in different ways for each.
The following are good walk-throughs that introduce ggplot2
:
Here are some other resources you might find useful:
ggplot2
cheatsheetTo get participation points for today:
git commit
whatever we finish in class to your participation repository.By the end of this lesson, students are expected to be able to:
ggplot2
tool (not on quiz)There are four main ways you can produce graphics in R. In order of inception, they are
lattice
ggplot2
tidyverse
plotly
ggplot2
will receive the strongest focus in this course. Why?
Stackoverflow was my main source of learning. Google what you’re trying to do, and persevere. You can do it.
Jenny Bryan on statistical graphics:
By the end of this lesson, students are expected to be able to:
ggplot2
Leland Wilkinson lays out the grammar of graphics in his book.
They define the “space of statistical graphics”.
The grammar components, adapted to ggplot2
(gg = grammar of graphics), where the bold ones are necessary to specify for every plot:
x
and y
aestheticsThis live-coding-based lesson focusses on:
x
and y
aesthetic mappings, whileBy the end of this lesson, students are expected to be able to:
ggplot2
under the following situations:
Let’s fill out as much as we can of the worksheet labelled lec1-worksheet.Rmd
.