5.1 Exploratory summary graphs
ggpairs()
(GGally
package): Provides quick and dirty overview of many variables and their relationships- Don’t plot too many variables!
- Figure 5.1 provides an example.
- Q: What does Figure 5.1 show? How useful is it?

Figure 5.1: Exploratory descriptive graphs
5.1.1 Lab: Data & Code
# data_bauer_poama.csv
data <- read_csv(sprintf("https://docs.google.com/uc?id=%s&export=download",
"1QeDCki2Auu3OZK7qMRh2xbq0u7n1Fy_8"))
ggpairs(data %>% dplyr::select(sex, age, employment_status)) +
theme(axis.text.x = element_text(angle = 45, hjust = 1)) # religion,
# You can set the cardinality threshold: Maximum number of levels allowed in a character / factor column