# >
Grammar of graphics I
- Using the
mtcars
data, create a scatterplot of the fuel efficiency as a function of weight.
- Repeat the plot but only with vehicles having 4 or 6 cylinders.
# >
- Repeat plot #1 but add a smooth line underneath the data points.
# >
- Make a boxplot of fuel efficiency for each cylinder size.
# >
- Add ” cylinders” to the end of each value in the cylinder column of data and replot #4.
# >
- Replot #4 ordering the cylinders such that the median mpg increases from left to right.
# >