This repository is the home of a diamond analysis shiny app which helps people to understand the pricing of diamonds.
Use this app with precaution and the author takes no responsiility of the actions taken.
The data are extracted from the web pages of James Allen, however, the author is not affiliated with the company.
The script scraper.py
scraps the price from the website and save the
result in the data
directory.
There are three sections to web app.
- Price Derivatives
- Find a Bargain
- Predictive Analysis
This page the user to selecte a diamond with specific quality its expected price, further, the price given a change to each of the 4C quality are also provided.
In this page, the user can find the optimal diamond on James Allen based on a given set of minimum criteria.
The predicted value and the retail price are illustrated in this component. This shows the power and the flaws of the model.
The data processing, exploratory analysis and the models can all be
found under the analysis
directory.
To launch the app, simply issue the follow command:
shiny::runApp()
Alternatively, one can deploy the app on shinyapps.
rsconnect::deployApp(appFiles = c("data/", "app.R", "helper.R"))
Please ensure that rsconnect
has been set up correctly, the
instruction can be found
here.