October 15, 2024

Slide 2: Objective

The Diamond Price Explorer is an interactive Shiny application that allows users to explore diamonds based on price, cut quality, and color.

You can access the Diamond Price Explorer application using the following link:

Open Diamond Price Explorer

Slide 3: How It Works

Users can filter diamonds by:

  • Price Range: Slider input to select the range of prices.
  • Cut Quality: Checkbox to select preferred cuts (e.g., Ideal, Premium).
  • Diamond Color: Dropdown menu to select diamond color.

The application provides a histogram of price distribution and a summary table.

Slide 4: Example of R Code Execution

Here is an example of how we can filter and visualize the diamonds dataset in our application:

library(ggplot2)
library(dplyr)

filteredData <- diamonds %>%
  filter(price >= 1000 & price <= 5000, 
         cut == "Ideal", 
         color == "G")

filteredData %>% summarize(Count = n(), AvgPrice = mean(price), 
                        MaxPrice = max(price), MinPrice = min(price))
## # A tibble: 1 × 4
##   Count AvgPrice MaxPrice MinPrice
##   <int>    <dbl>    <int>    <int>
## 1  2007    2253.     4997     1000

Slide 5: Conclusion

The Diamond Price Explorer provides an intuitive interface for exploring diamond prices and characteristics.