03 mostly done
BIN
03.charts/area.png
Normal file
After Width: | Height: | Size: 51 KiB |
BIN
03.charts/bars.png
Normal file
After Width: | Height: | Size: 27 KiB |
BIN
03.charts/bubble.png
Normal file
After Width: | Height: | Size: 35 KiB |
BIN
03.charts/bump.png
Normal file
After Width: | Height: | Size: 52 KiB |
BIN
03.charts/crochet.jpg
Normal file
After Width: | Height: | Size: 26 KiB |
BIN
03.charts/facet.png
Normal file
After Width: | Height: | Size: 26 KiB |
BIN
03.charts/heatmap.png
Normal file
After Width: | Height: | Size: 30 KiB |
BIN
03.charts/lhc.png
Normal file
After Width: | Height: | Size: 904 KiB |
BIN
03.charts/lines.png
Normal file
After Width: | Height: | Size: 57 KiB |
BIN
03.charts/npr-side-by-side.png
Normal file
After Width: | Height: | Size: 105 KiB |
BIN
03.charts/nyt1.png
Normal file
After Width: | Height: | Size: 721 KiB |
BIN
03.charts/nyt2.png
Normal file
After Width: | Height: | Size: 954 KiB |
BIN
03.charts/pie-comparison.png
Normal file
After Width: | Height: | Size: 25 KiB |
BIN
03.charts/pie-many.avif
Normal file
BIN
03.charts/pyramid.png
Normal file
After Width: | Height: | Size: 18 KiB |
BIN
03.charts/rankline.png
Normal file
After Width: | Height: | Size: 25 KiB |
@ -28,7 +28,7 @@ theme: custom-theme
|
|||||||
|
|
||||||
- Graphical Integrity: Above all else, show the data.
|
- Graphical Integrity: Above all else, show the data.
|
||||||
- Maximize the data-ink ratio.
|
- Maximize the data-ink ratio.
|
||||||
- Minimize chart-junk.
|
- Minimize chart junk.
|
||||||
- Aim for high chart density, consider *small multiples*.
|
- Aim for high chart density, consider *small multiples*.
|
||||||
- Revision & Editing are essential.
|
- Revision & Editing are essential.
|
||||||
|
|
||||||
@ -113,36 +113,177 @@ via junkcharts.typepad.com
|
|||||||
|
|
||||||
## Common Chart Types
|
## Common Chart Types
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
### Bar Charts & Histograms
|
### Bar Charts & Histograms
|
||||||
|
|
||||||
|
- X/Y: Nominal (Binned Numerical - Histogram)
|
||||||
|
- Y/X: Quantitative
|
||||||
|
|
||||||
|
![](bars.png)
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
### Line & Area Charts
|
### Line & Area Charts
|
||||||
|
|
||||||
### Sparklines
|
- X: Temporal
|
||||||
|
- Y: Quantitative
|
||||||
|
|
||||||
### Strip Plot & Heatmap
|
|
||||||
|
![bg right width:600px](lines.png)
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
### When to use stacked area charts?
|
||||||
|
|
||||||
|
![bg left width:600px](area.png)
|
||||||
|
|
||||||
|
Combined X axis variable has meaning.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
### Heatmap
|
||||||
|
|
||||||
|
![bg right width:600px](heatmap.png)
|
||||||
|
|
||||||
|
- X & Y: Quantitative or Nominal
|
||||||
|
- Color: Quantitative
|
||||||
|
- `mark_rect`
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
### Strip Plot
|
||||||
|
|
||||||
|
![bg left width:600px](strip.png)
|
||||||
|
|
||||||
|
- Y: Nominal
|
||||||
|
- X: Temporal or Quantitative
|
||||||
|
- Color: Optional (any type)
|
||||||
|
- `mark_tick`
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
### Pie / Donut / Radial Charts
|
### Pie / Donut / Radial Charts
|
||||||
|
|
||||||
### Ranked Line Chart
|
![](pyramid.png)
|
||||||
|
|
||||||
### Scatterplots
|
Theta: Quantitative (ratio)
|
||||||
|
Color: Nominal
|
||||||
|
|
||||||
|
Direct comparison of segments is very difficult at n > 2.
|
||||||
|
|
||||||
|
Only use when most important information is ratio between sizes, and relatively few categories.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
![](pie-comparison.png)
|
||||||
|
https://www.storytellingwithdata.com/blog/2020/5/14/what-is-a-pie-chart
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
### Bump / Rank Line Chart
|
||||||
|
|
||||||
|
![width:200px left](rankline.png)
|
||||||
|
|
||||||
|
![width:500px left](bump.png)
|
||||||
|
|
||||||
|
Useful for showing changes in relative positioning.
|
||||||
|
|
||||||
|
Require some data manipulation using `transform_window` or pre-computing ranks. (see Altair gallery examples.)
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
### Scatter & Bubble Plots
|
||||||
|
|
||||||
|
![](bubble.png)
|
||||||
|
|
||||||
|
- X / Y: Quantitative
|
||||||
|
|
||||||
|
Bubble charts use size as a 3rd dimension.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
### Small Multiples / Faceting
|
### Small Multiples / Faceting
|
||||||
|
|
||||||
|
![](facet.png)
|
||||||
|
|
||||||
|
![bg right](small-maps.png)
|
||||||
|
|
||||||
|
<!-- source: https://www.juiceanalytics.com/writing/better-know-visualization-small-multiples -->
|
||||||
|
|
||||||
|
Most useful when there is a nominal variable that charts vary on.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
### Distributions
|
### Distributions
|
||||||
|
|
||||||
### Map Basics
|
### Map Basics
|
||||||
|
|
||||||
### Altair Gallery Miscellania
|
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
## When & How to Break the Rules
|
## When & How to Break the Rules
|
||||||
|
|
||||||
### 2 Examples: Hex / Grid maps ... Word Clouds
|
**When in doubt...**
|
||||||
### Narrative-supporting graphics
|
|
||||||
|
- 95% of visualizations should be some variation of the common types.
|
||||||
|
- Focus on Tufte's rules for clarity.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
### Case Study: Two Innovations
|
||||||
|
|
||||||
|
Two visualization types that have had their moment in the past 10-15 years:
|
||||||
|
|
||||||
|
- Hex/Grid Maps
|
||||||
|
- Word Clouds
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Grid Map
|
||||||
|
|
||||||
|
![](npr-side-by-side.png)
|
||||||
|
|
||||||
|
Introduced in <https://blog.apps.npr.org/2015/05/11/hex-tile-maps.html>
|
||||||
|
|
||||||
|
|
||||||
|
<!-- discuss: is this a good thing? -->
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Word Cloud
|
||||||
|
|
||||||
|
![](word-cloud.jpg)
|
||||||
|
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
![bg left](nyt1.png)
|
||||||
|
![](nyt2.png)
|
||||||
|
|
||||||
|
Derived from same data as word cloud.
|
||||||
|
|
||||||
|
source: NYTimes via https://www.niemanlab.org/2011/10/word-clouds-considered-harmful/
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Narrative-supporting graphics
|
||||||
|
|
||||||
|
![bg left width:500px](crochet.jpg)
|
||||||
|
|
||||||
|
by ulaniulani on flickr
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
### When it's OK to use 3D
|
### When it's OK to use 3D
|
||||||
|
|
||||||
|
You have data that truly makes more sense in 3D.
|
||||||
|
|
||||||
|
and/or
|
||||||
|
|
||||||
|
You work at CERN.
|
||||||
|
|
||||||
|
![bg right width:700px](lhc.png)
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
## Acknowledgements & References
|
## Acknowledgements & References
|
||||||
@ -150,3 +291,6 @@ via junkcharts.typepad.com
|
|||||||
Thanks to Alex Hale, Andrew McNutt, and Jessica Hullman for sharing their materials.
|
Thanks to Alex Hale, Andrew McNutt, and Jessica Hullman for sharing their materials.
|
||||||
|
|
||||||
- https://www2.cs.uh.edu/~ceick/NO/COSC3337-DV2.pdf
|
- https://www2.cs.uh.edu/~ceick/NO/COSC3337-DV2.pdf
|
||||||
|
- Images from Tufte's Visual Display of Quantitative Information
|
||||||
|
- Images from Altair <https://altair-viz.github.io/gallery/index.html>
|
||||||
|
|
||||||
|
BIN
03.charts/small-maps.png
Normal file
After Width: | Height: | Size: 217 KiB |
BIN
03.charts/strip.png
Normal file
After Width: | Height: | Size: 8.7 KiB |
BIN
03.charts/word-cloud.jpg
Normal file
After Width: | Height: | Size: 150 KiB |
BIN
03.charts/word-cloud.png
Normal file
After Width: | Height: | Size: 186 KiB |