April 8, 2019

Developing Data Products: Final Project

  • Write a Shiny application with associated supporting documentation
  • Deploy app on Rstudio's Shiny server
  • Share the server.R and ui.R code on github
  • Create a 5-page Rstudio pitch presentation including reproducible code, to introduce and describe the Shiny app.

This Shiny interactive scatter plot visualizes the relationship among various diamond attributes and price, and can be displayed in faceted rows and columns. https://lauriebel.shinyapps.io/Diamonds/

ui.R and server.R code https://github.com/LaurieBel/DevelopingDataProducts

The Diamond Dataset

The classic ggplot2 Diamond dataset contains the prices and other attributes of almost 54,000 diamonds.

A data frame with 53940 rows and 10 variables, this comparison uses 7:

  • price: price in US dollars ($326–$18,823)

  • carat: weight of the diamond (0.2–5.01)

  • cut: quality of the cut (Fair, Good, Very Good, Premium, Ideal)

  • color: diamond colour, from J (worst) to D (best)

  • clarity: a measurement of how clear the diamond is (I1 (worst), SI2, SI1, VS2, VS1, VVS2, VVS1, IF (best))

  • depth: total depth percentage

  • table: width of top of diamond relative to widest point (43–95)

Interactive Scatterplot in server.R

Summary

  • Interactive Shiny application
  • Adjustable data sample size
  • User controlled input widgets to select attributes