1
Project Topic, Audience, and Data
2
Choosing a Visual
3
Themes in ggplot
We have talked about visualizations of data in lots of contexts
But if you are past the exploratory phase, and now trying to communicate to an audience, what are the merits of using one visualization over another?
Your reading covered the main types of visualizations we see in the wild
Simple text
Table
Heat map
Scatter plot
Line
Slope graph
Bar charts
Waterfall
Waffle chart
And more!
20%
of children had a
traditional stay-at-home mom
in 2012, compared to 41% in 1970
Tables are meant to be read
Tables make it easy to look up individual values, or pairs of values
As a general rule, light and minimal borders are better
good for categorical data
Usually we want to kep Y-axis at zero (not necessarily true for lines!)
class vertical is good for just a couple data series
Stacked vertical can be hard to judge - put key variable on bottom
horizontal good for long category names, direct eyes to names first
Use the handouts for today to practice choosing the right visual.
The theme function is magic!
The graphs on the following slides were all made using essentially the same base graph with different themes applied
In addition to applying pre-set themes, the theme function can also alter most of the elements of your graph outside of plot type and aes assignment.
Econ 255 - Data Storytelling