Question: Answer in R Make sure to have these libraries installed: library(ggplot2), library(dplyr), library(tidyr) Load the dataset diamonds as: data(diamonds) and then create a new data
Answer in R Make sure to have these libraries installed: library(ggplot2), library(dplyr), library(tidyr) Load the dataset diamonds as: data(diamonds) and then create a new data frame as - diamondsData = diamonds Construct a histogram for carat. Here is the code to run. Modify it, if it helps answer the question. ggplot(data=diamondsData,aes(x=carat))+ geom_histogram(binwidth = 0.01)+ coord_cartesian(xlim=c(0,2.5))+ scale_x_continuous(breaks=seq(0,2.5,0.1)) The spikes in the density plot represent the popularity of the diamond at a certain carat size. Which of the following represent peaks (local maxima) in the density plot. Note, the numbers in the choices for this question are approximations and may have an error of +/- 0.02. So, for example if you notice a peak at 0.32, check 0.3 below. (Can you think of a reason for these peaks?) (Select all answers that apply). Group of answer choices
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
