Question: Using rstudio to solve it. Q1: Using the mpg dataset, submit your code and make a plot of the highway miles per gallon against displacement,
Using rstudio to solve it.
Q1: Using the mpg dataset, submit your code and make a plot of the highway miles per gallon against displacement, but only show minivans and suvs with a displacement of more than 3.3 .
Q2:Make a new column in the diamonds dataset for the total diamond volume (assuming that the diamond is a rectangular prism). Considering that the volume is an approximation but carat is a weight measurement, let's plot the calculated volume on the y axes and the carat weight on the x-axis. Set up the plot so that the colours of the points are given by the diamond cut.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
