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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Mathematics Questions!