Exploratory Data Analysis in R
Andrew Bray
Assistant Professor, Reed College
ggplot(cars, aes(x = msrp)) +
geom_density() +
facet_grid(pickup ~ rear_wheel)
ggplot(cars, aes(x = msrp)) +
geom_density() +
facet_grid(pickup ~ rear_wheel, labeller = label_both)
ggplot(cars, aes(x = msrp)) +
geom_density() +
facet_grid(pickup ~ rear_wheel, labeller = label_both)
table(cars$rear_wheel, cars$pickup)
FALSE TRUE
FALSE 306 12
TRUE 98 12
Shape
Size
Color
Pattern
Movement
x-coordinate
y-coordinate
Exploratory Data Analysis in R