Practice: ggplot

In this exercise, you can practice the implementation of ggplot and compare it to the base-R graphics. This exercise does not count toward your grade. It is just for practice!

Exercise:

  1. Load the package ggplot2.
  2. Create a plot for the data cars similar to the one you obtained using the plot function in the previous exercise. 
  3. Use the jpeg() driver and dev.off() to save the plot on your computer.
Last modified: Friday, January 13, 2023, 9:24 AM