CSE 163
Data Visualization�
Suh Young Choi�
🎶 Listening to: Hollow Knight soundtrack
💬 Before Class: On a scale of 1-7, what is your favorite color of the alphabet?
This Time
Last Time
2
Announcements
3
Default Parameters
4
def greetings(to: str = 'world'):
return 'Hello ' + to + '!'
greetings('Sarah') # 'Hello Sarah!'
greetings(to='Antonio') # 'Hello Antonio!'
greetings() # 'Hello world!'
Data Viz in Python
5
Encoding Effectiveness
[Mackinlay 86]
6
Example
Effectiveness
7
Example
Effectiveness
8
Always remember…
9
Before Next Time
Next Time
10
CSE 163
Data Visualization
Hunter Schafer
What to Learn
12
Some Data
13
x | y |
10.0 | 7.46 |
8.0 | 6.77 |
13.0 | 12.74 |
9.0 | 7.11 |
11.0 | 7.81 |
14.0 | 8.84 |
6.0 | 6.08 |
4.0 | 5.39 |
12.0 | 8.15 |
7.0 | 6.42 |
5.0 | 5.73 |
I | II | III | IV | ||||
x | y | x | y | x | y | x | y |
10.0 | 8.04 | 10.0 | 9.14 | 10.0 | 7.46 | 8.0 | 6.58 |
8.0 | 6.95 | 8.0 | 8.14 | 8.0 | 6.77 | 8.0 | 5.76 |
13.0 | 7.58 | 13.0 | 8.74 | 13.0 | 12.74 | 8.0 | 7.71 |
9.0 | 8.81 | 9.0 | 8.77 | 9.0 | 7.11 | 8.0 | 8.84 |
11.0 | 8.33 | 11.0 | 9.26 | 11.0 | 7.81 | 8.0 | 8.47 |
14.0 | 9.96 | 14.0 | 8.10 | 14.0 | 8.84 | 8.0 | 7.04 |
6.0 | 7.24 | 6.0 | 6.13 | 6.0 | 6.08 | 8.0 | 5.25 |
4.0 | 4.26 | 4.0 | 3.10 | 4.0 | 5.39 | 19.0 | 12.50 |
12.0 | 10.84 | 12.0 | 9.13 | 12.0 | 8.15 | 8.0 | 5.56 |
7.0 | 4.82 | 7.0 | 7.26 | 7.0 | 6.42 | 8.0 | 7.91 |
5.0 | 5.68 | 5.0 | 4.74 | 5.0 | 5.73 | 8.0 | 6.89 |
[Anscombe 73]
Some Data Visualizations
14
The Value of Visualization
15
Make a Decision:
Challenger
16
Make a Decision:
Challenger
Visualizations drawn by Tufte show how low temperatures damage O-rings [Tufte 97]
17
Data in Context:
Cholera Outbreak
18
In 1854 John Snow plotted the position of each cholera case on a map. [from Tufte 83]
Data in Context:
Cholera Outbreak
19
Used map to hypothesize that pump on Broad St. was the cause. [from Tufte 83]
Data Viz in Python
20
Reading Documentation
21
Visual Design Principles
Rarely does a single visualization answer all questions. Instead, the ability to generate appropriate visualizations quickly is critical!
22
Types of Data
23
Encoding Effectiveness
[Mackinlay 86]
24
Example
Effectiveness
25
Encoding Effectiveness
[Mackinlay 86]
26
Example
Effectiveness
27
Encoding Effectiveness
[Mackinley 86]
28
Readability
29
Readability
30
Yes, this was a real graphic posted in an article by Business Insider (graphic made by Reuters)
How to Lie with Data Viz
31
How to Lie with Data Viz
32