Diamond prices: diamonds
Mix.install([
{:giggly, path: Path.join(__DIR__, "..")},
{:kino, "~> 0.19"}
])
About this notebook
ggplot2's reference page for diamonds
has no examples, so this notebook says only what the page describes and where Giggly stands.
diamonds holds the prices and other attributes of almost 54,000 round cut diamonds: price in US
dollars, weight in carats, the quality of the cut, colour from D (best) to J (worst), clarity,
length, width and depth in millimetres, the total depth as a percentage of the mean of length and
width, and the width of the top relative to the widest point. Giggly has it as
Giggly.Datasets.diamonds/0, a keyword list of columns Giggly.Plot.new/2 takes as it is. The
cut, colour and clarity are ordered factors, Giggly.Factors with R's levels, so a plot orders
them as R does, the cut from Fair to Ideal.