Today we will…
echo: true
Graphics consist of:
Structure: boxplot, scatterplot, etc.
Aesthetics: features such as color, shape, and size that map other variables to structural features.
Both the structure and aesthetics should help viewers interpret the information.
Edward R. Tufte is a well-known critic of visualizations, and his definition of graphical excellence consists of:
Our brains have an amazing ability to create and perceive structure among visual objects.
Gestalt Hierarchy | Graphical Feature |
---|---|
1. Enclosure | Facets |
2. Connection | Lines |
3. Proximitiy | White Space |
4. Similarity | Color/Shape |
Implications for practice:
The next slide will have one point that is not like the others.
Raise your hand when you notice it.
Pre-attentive features are features that we see and perceive before we even think about it.
They will jump out at us in less than 250 ms.
E.g., color, form, movement, spatial location.
There is a hierarchy of features:
Do not use rainbow color gradients!
Be conscious of what certain colors “mean”.
Can use colorRampPalette()
from the RColorBrewer
package to produce larger palettes:
To colorblind-proof a graphic…
To colorblind-proof a graphic…
To colorblind-proof a graphic…
There are several packages with color scheme options:
These packages have color palettes that are aesthetically pleasing and, in many cases, colorblind friendly.
You can also take a look at other ways to find nice color palettes. ColorBrewer is my personal favorite.
https://www.data-to-viz.com/graph/area.html
https://r-graph-gallery.com/web-vertical-line-chart-with-ggplot2.html
https://r-graph-gallery.com/web-line-chart-with-labels-at-end-of-line.html
Starting with Lab 2, your labs will be graded more strictly on appearance and code format.
Review the lab formatting guidelines on Canvas before you submit your lab!
Big points: