This is an R Markdown document using ioslides as output for presentation. Here Plotly is used to plot graphical output.Here we are using diamonds data set for graph. Diamonds with lower quality cuts (cuts are ranked from “Ideal” to “Fair”) tend to be be larger.Likewise, diamonds with worse color (diamond colors are ranked from J (worst) to D (best)) tend to be larger,The pattern present in cut and color is also present in clarity. Diamonds with worse clarity (I1 (worst), SI1, SI2, VS1, VS2, VVS1, VVS2, IF (best)) tend to be larger.These patterns are consistent with there being a profitability threshold for retail diamonds that is a function of carat, clarity, color, cut and other characteristics. A diamond may be profitable to sell if a poor value of one feature, for example, poor clarity, color, or cut, is be offset by a good value of another feature, such as a large size.