4.5 Steps of visualizing
- Healy (2018 Chapter 3.4) summarizes it in the following steps:
data = ...
step: Tell theggplot()
function what our data ismapping = aes(...)
step: Tellggplot()
what relationships we want to see- Choose a
geom
step: Tellggplot
how we want to see the relationships in our data - Layer on
geoms
as needed, by adding them one at a time - Use The
scale_
, family,labs()
andguides()
functions.
- We can either store plot object and add things (
p <- p + ...
) or concatenate everything with%>%
.
References
Healy, Kieran. 2018. Data Visualization: A Practical Introduction. Princeton University Press.