Question: Load the required packages and dataset library(dplyr) library(ggplot2) data(diamonds) ``` #### a. (3 points) Use scatterplot to display how cut, color, and clarity affect the

Load the required packages and dataset library(dplyr) library(ggplot2) data("diamonds") ``` #### a. (3 points) Use scatterplot to display how cut, color, and clarity affect the price of a diamond. Ensure that the axes are appropriately labeled and that each type of cut, color, and clarity is distinguishable via colored labels. ```{r} ``` #### b. (2 points) Group the diamonds dataset based on their clarity attribute. For every group, clearly present the average depth of the diamonds as well as av

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!