5 July 2017

Task

Create a web page presentation using R Markdown that features a plot created with Plotly.

Host your webpage on either GitHub Pages, RPubs, or NeoCities.

Your webpage must contain the date that you created the document, and it must contain a plot created with Plotly.

You will see a graph below that shows the carat and related price of the diamonds labelled by cut. Carat is the weight of the diamond. Cut is the quality of the cut.

Loading data

The diamonds data set is part of the ggplot2 package. It contains the prices of about 50,000 round cut diamonds. The values of cut are (from best to worst): Fair < Good < Very Good < Premium < Ideal

data(diamonds)
d <- data.table(diamonds)

Visualizing the Data