Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Write the code to execute the following steps using the diamonds data set. Use R Add a new column price_per_carat which is the price of
Write the code to execute the following steps using the diamonds data set. Use R
- Add a new column price_per_carat which is the price of the diamond divided by its weight in carats
- Sort the rows of the resulting tibble in descending order of price_per_carat
- Retain only the top 1000 rows in the order above
- For these 1000 rows, plot the distribution of color using a bar plot where your bars should be filled with the color "khaki"
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started