Visualization in higher dimensions

Exploratory Data Analysis in R

Andrew Bray

Assistant Professor, Reed College

Plots for 3 variables

ggplot(cars, aes(x = msrp)) +
  geom_density() +
  facet_grid(pickup ~ rear_wheel)

ch2_4.005.png

Exploratory Data Analysis in R

Plots for 3 variables

ggplot(cars, aes(x = msrp)) +
  geom_density() +
  facet_grid(pickup ~ rear_wheel, labeller = label_both)

ch2_4.008.png

Exploratory Data Analysis in R

Plots for 3 variables

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
Exploratory Data Analysis in R

Higher dimensional plots

  • Shape

  • Size

  • Color

  • Pattern

  • Movement

  • x-coordinate

  • y-coordinate

Exploratory Data Analysis in R

Let's practice!

Exploratory Data Analysis in R

Preparing Video For Download...