GeoRic
08/12/2020
In this application, the predicted values will be based off the actual data from the Diamonds dataset. The r codes below represents the plot of the actual prices in relation to carat size and cut. This will be the basis for creating the prediction model.
library(ggplot2)
ggplot(aes(x = carat, y = price), data = diamonds) +
geom_point(alpha = 0.5, size = 1, position = 'jitter',aes(color=cut)) +
ggtitle('Price by Carat Size and Cut')