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
Get step-by-step solutions from verified subject matter experts
