scatter matrix. Base R only.
Goal
Run every block and confirm the chart is visible.
df <- data.frame(units = c(12, 7, 9, 4, 11), shillings = c(1260, 1540, 945, 880, 1155), rain = c(48, 22, 60, 40, 35))
pairs(df, main = "Kiosk numbers")
print("pairs")barplot(c(21, 15, 15, 18, 12), names.arg = c("Nairobi", "Mombasa", "Kisumu", "Nakuru", "Eldoret"), col = "#0f6b52", main = "Units")
print("barplot")set.seed(0)
hist(rpois(80, 12), main = "Units distribution", col = "#0f6b52", xlab = "units")
print("hist")print("pairs")