- Using the
mpg
data, create boxplots of highway fuel efficiency as a function of class.
- Zoom into the plot with y-axis limits of 15 and 40 without altering the data.
- Change the y-axis limits to 15 and 40 but allow the statistical transformations to change the data.
- Replot #1 but using a log10 scale.
- Replot #1 but with y-axis limits running from 0 to 50 and with labels in increments of 5 but no minor grid lines.
- Replot #1 but create separate panels based on year (as rows) and cylinders (as columns) and allowing the scales to vary across rows.
- 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.