Adjusting axes

Author

Jeffrey R. Stevens

Published

April 24, 2023

  1. Using the mpg data, create boxplots of highway fuel efficiency as a function of class.
# >
  1. Zoom into the plot with y-axis limits of 15 and 40 without altering the data.
# >
  1. Change the y-axis limits to 15 and 40 but allow the statistical transformations to change the data.
# >
  1. Replot #1 but using a log10 scale.
# >
  1. Replot #1 but with y-axis limits running from 0 to 50 and with labels in increments of 5 but no minor grid lines.
# >
  1. Replot #1 but create separate panels based on year (as rows) and cylinders (as columns) and allowing the scales to vary across rows.
# >
  1. Replot #1 and assign it to hwy_plot and replot a similar version with city fuel efficiency named cty_plot. Then combine them into a compound plot labeled as subfigures A and B and save this figure on your computer as a PNG file.
# >