Prasanna Bhogale BerlinR - Meetup2 05-02-2019
with infinite gratitude to Hadley Wickham
“the fundamental principles or rules of an art or science”
Grammar + Vocabulary
Clustered column chart, Stacked column chart, 100% stacked column chart, 3-D column chart, Cylinder, cone, and pyramid chart, Line chart, Stacked line chart, 100% stacked line chart, 3-D line chart, Pie chart, Pie of pie or bar of pie chart, Exploded pie chart, Clustered bar chart, Stacked bar chart, 100% stacked bar chart and 100% stacked bar chart in 3-D, Horizontal cylinder, cone, and pyramid chart, Area chart, Stacked area chart, 100% stacked area chart, Scatter chart, Scatter chart with smooth lines and scatter chart with smooth lines and markers, Scatter chart with straight lines and scatter chart with straight lines and markers, Bubble chart, Bubble chart or bubble chart with 3-D effect, High-low-close stock chart, Open-high-low-close stock chart, Volume-high-low-close stock chart, Volume-open-high-low-close stock chart, Doughnut chart, Exploded doughnut chart, Radar chart, Filled radar chart . . . . .
- Data
from Wickham 2010
- Data
- Mapping data to aesthetics
- Geometry : points, lines, bars, colours, shapes...
- Coordinates system : position on plane
from Wickham 2010
- Data
- Mapping data to aesthetics
- Mapping aesthetics to display
from Wickham 2010
- Data
$\rightarrow$ aesthetics$\rightarrow$ display - Scales : displaying relationship of position to data
from Wickham 2010
bars <- qplot(clarity, data=diamonds, geom="blank", fill=clarity) +
scale_fill_brewer(palette="YlGnBu")
stack <- bars + aes(x = factor(1)) + scale_x_discrete(labels = "")
bars + geom_bar()