Robert Norberg
Thursday, Aug 27, 2015
An R package for producing statistical graphics
One of Hadley Wickham's early packages
A great reson to learn R!
ggplot2 prefers your data to be in third normal form“[Every] non-key [attribute] must provide a fact about the key, the whole key, and nothing but the key.” - Bill Kent
A dataset containing the prices and other attributes of 53,940 round cut diamonds.
library(ggplot2)
data(diamonds)
names(diamonds)
[1] "carat" "cut" "color" "clarity" "depth" "table" "price"
[8] "x" "y" "z"
We will investigate the relationship between carat and price of diamond.
The first person to recreate this plot exactly wins lunch on me at the (nearby) restaraunt of their choice! (email me your code to win)