1. Learn
  2. /
  3. Courses
  4. /
  5. R For SAS Users

Connected

Exercise

Scatterplots

This exercise will continue to expand the ggplot2 layers with geom_point() for creating scatterplots and geom_smooth() to add a local regression (loess) fit line. You'll also add another layer facet_wrap(vars(x)) to obtain a panel plot by a third variable x.

The ggplot2 and dplyr packages and the abalone dataset are already loaded for you.

Instructions 1/3

undefined XP
    1
    2
    3
  • Create a scatterplot of abalone whole weight on y-axis by diameter on x-axis.