Chapter 6 Problem 6

Using the mpg dataset in the ggplot2 package. replicate the plot below using the foolowing settings.

  • Set width = 0.6 for the width of bars.
  • Rotate tick labels in the x-axis by 65 degree.
  • Use palette = “Spectral” for color.