Week 3
ggplot2
graphggplot2
to create bar graphsggplot2
to customize graphsScenario: We want to visualize the all_workshops
data frame we created in Week 1.
We’ll complete the following tasks:
ggplot2
BasicsThe “gg” in ggplot2
refers to the “grammar of graphics”.
All ggplot2
graphs start with the same basic template:
<DATA> %>%
ggplot(aes(<MAPPINGS>)) +
<GEOM_FUNCTION>() +
<Additional GEOMS, SCALES, THEMES, etc. . . >
ggplot2
documentationggplot2
Aesthetic Specifications