-
Notifications
You must be signed in to change notification settings - Fork 18
/
index.html
1012 lines (996 loc) · 54.3 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!DOCTYPE html>
<html lang="en">
<head>
<title>Week 6 Visualizing Tabular Data. MIDS W209 Information Visualization Slides</title>
<meta charset="utf-8">
<meta name="author" content="John Alexis Guerra Gómez">
<meta name="description" content="Week 6 Visualizing Tabular Data. MIDS W209 Information Visualization Slides">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Fjalla+One|Raleway|PT+Sans+Narrow">
<link rel="stylesheet" href="https://use.typekit.net/yjc0afr.css">
<link rel="stylesheet" href="../plugin/highlight/monokai.css" id="highlight-theme">
<link href="../css/reveal.css" rel="stylesheet">
<link href="../css/theme/white.css" rel="stylesheet" id="theme">
<link href="../css/style.css" rel="stylesheet">
</head>
<body>
<div class="reveal">
<div class="slides">
<section>
<h1 class="title">Visualizing Tabular Data<br><small>MIDS W209: Information Visualization</small></h1>
<div class="r-stretch"></div>
<div class="tiny"><a href="https://johnguerra.co/" target="_blank"><strong> John Alexis Guerra Gómez</strong></a><span> | john.guerra[at]gmail.com</span><a href="https://twitter.com/duto_guerra"> | @duto_guerra</a><br><a href="https://johnguerra.co/lectures/MIDS_W209_Information_Visualization/06_Tabular/" target="_blank">https://johnguerra.co/lectures/MIDS_W209_Information_Visualization/06_Tabular/</a></div>
<div class="logo"><a href="https://datascience.berkeley.edu/"><img class="logo" data-src="../shared_images/UC_Berkeley_wordmark_cal_gold.png" alt="University Of California at Berkeley logo"></a></div>
<div class="tiny">Partially based on<a href="https://www.cs.ubc.ca/~tmm/talks.html#minicourse14"> slides from Tamara Munzner</a></div>
</section>
<section id="outline">
<section>
<h2>What We Are Going to Learn</h2>
<ul class="small line-compressed" style="margin-top: -2rem">
<li>Arranging tables</li>
<li class="fragment">Zero keys
<ul class="tiny">
<li>Scatterplots</li>
</ul>
</li>
<li class="fragment">Some keys
<ul class="tiny">
<li>Barcharts</li>
<li>Heatmaps</li>
</ul>
</li>
<li class="fragment">Other axis orientations
<ul class="tiny">
<li>Sploms</li>
<li>Parallel coordinates</li>
<li>Navio</li>
</ul>
</li>
<li class="fragment">Radial representations
<ul class="tiny">
<li>Pie charts</li>
<li>Radar plots</li>
</ul>
</li>
</ul>
</section>
<section>
<h1>Recap What/Why/How</h1>
</section>
<section data-background-size="contain" data-background="../shared_images/vad_book_alldiagrams/tamara_course14_session1-15.png"></section>
<section data-background-size="contain" data-background="../shared_images/vad_book_alldiagrams/tamara_course14_session1-15_highlighted.png"></section>
<section data-background-size="contain" data-background="../shared_images/vad_book_alldiagrams/tamara_course14_session1-19.png"></section>
<section data-background-size="contain" data-background="../shared_images/vad_book_alldiagrams/tamara_course14_session1-23.png"></section>
<section data-background-size="contain" data-background="../shared_images/vad_book_alldiagrams/tamara_course14_session1-23_highlighted.png"></section>
<section>
<div><img src="../shared_images/UC_Berkeley_wordmark_cal_gold.png" alt="University Of California at Berkeley logo"></div>
</section>
</section>
<section id="arrangingTables">
<section>
<h1>Arranging Tables</h1>
</section>
<section>
<h2>Why Arrange?</h2>
<p class="fragment">Space is the most important channel.</p>
</section>
<section>
<h2>How to arrange</h2>
<div class="flex">
<div class="half">
<ul class="small">
<li class="fragment">Quantitative data<br><strong class="fragment">👉 Express</strong></li>
<li class="fragment">Categorical data<br><strong class="fragment">👉 Separate, order, align</strong></li>
</ul>
</div>
<div class="half">
<figure><img class="fill" data-src="../shared_images/vad_book_alldiagrams/how_encode_arrange.png" alt="How, encode, Arrange"></figure>
</div>
</div>
</section>
<section class="full">
<h2>Arrange Tables</h2>
<div class="flex"><img class="fragment" style="width:45%" src="../shared_images/vad_book_alldiagrams/how_express_separate.png" alt="Express Separate Order and Align"><img class="fragment" style="width:45%" src="../shared_images/vad_book_alldiagrams/how_axis_orientation.png" alt="Axis Orientation"><img class="fragment" style="margin-top:30px; width:100%" src="../shared_images/vad_book_alldiagrams/how_keys.png" alt="Keys"></div>
</section>
<!-- @john-guerra Note: the above image is cut off on the slide-->
<section>
<h3>Keys</h3>
<div class="flex">
<div class="half">
<ul class="small">
<li class="fragment">Independent attribute</li>
<li class="fragment">Used as unique index to look up items</li>
<li class="fragment">Simple tables: <strong>one key</strong></li>
<li class="fragment">Multidimensional tables: <strong>multiple keys</strong></li>
</ul>
</div>
<div class="half"><img class="fragment vcentered" width="100%" style="margin-top:40px" src="../shared_images/vad_book_alldiagrams/how_keys.png" alt="Keys"></div>
</div>
</section>
<section>
<h3>Values</h3>
<div class="flex">
<div class="half"><img class="vcentered" style="max-width:300px" src="../shared_images/vad_book_alldiagrams/what_tables.png" alt="What Tables"></div>
<div class="half">
<ul class="small">
<li class="fragment">Dependent attribute, value of cell</li>
<li class="fragment">Classify arrangements by key count</li>
<li class="fragment">Zero, one, two, many...</li>
</ul>
</div>
</div>
</section>
<section>
<div><img src="../shared_images/UC_Berkeley_wordmark_cal_gold.png" alt="University Of California at Berkeley logo"></div>
</section>
</section>
<section id="0Keys">
<section>
<h2>Zero Keys</h2><img class="fill" data-src="../shared_images/vad_book_alldiagrams/0_keys.png" alt="0 Keys">
</section>
<section class="full">
<h2>Idiom: Scatterplot</h2>
<div class="flex">
<div class="half">
<ul class="small">
<li class="fragment"><strong>Express</strong> values</li>
<ul class="small">
<li class="fragment">Quantitative attributes</li>
</ul>
<li class="fragment">No keys, only values</li>
<ul class="small">
<li class="fragment"><strong>Data</strong>: <span class="fragment">two quantitative attributes</span></li>
<li class="fragment"><strong>Mark</strong>: points</li>
<li class="fragment"><strong>Channels</strong>: <span class="fragment">horizontal and vertical position</span></li>
<li class="fragment"><strong>Tasks</strong>: <span class="fragment">identify trends, outliers, distribution, correlation, clusters</span></li>
<li class="fragment"><strong>Scalability</strong>: <span class="fragment">hundreds of items</span></li>
</ul>
</ul>
</div>
<div class="half"><img width="250px" src="../shared_images/vad_book_alldiagrams/how_express.png" alt="Express">
<figure style="margin-top: 50px"><img width="120%" style="position:relative; left:-10%" src="../shared_images/vad_book_alldiagrams/scatterplot_wickham.png" alt="Scatterplot example">
<figcaption class="reference tiny">[A layered grammar of graphics. Wickham. Journ. Computational and Graphical Statistics 19:1 (2010), 3–28.]</figcaption>
</figure>
</div>
</div>
</section>
<section>
<h2>Scatterplot Overplotting</h2>
<div class="flex" id="observablehq-f974ea53">
<div class="half">
<div class="flex">
<div class="half observablehq-viewof-r"></div>
<div class="half observablehq-viewof-jitterValue"></div>
</div>
<div class="observablehq-chart"></div>
</div>
<div class="half fragment">
<div class="observablehq-viewof-collisionR"></div>
<div class="observablehq-chartForce"></div>
</div>
</div>
<div>
<script type="module">
import {Runtime, Inspector} from "https://cdn.jsdelivr.net/npm/@observablehq/runtime@4/dist/runtime.js";
import define from "https://api.observablehq.com/@john-guerra/overlapping-scatterplots.js?v=3";
(new Runtime).module(define, name => {
if (name === "viewof r") return Inspector.into("#observablehq-f974ea53 .observablehq-viewof-r")();
if (name === "viewof jitterValue") return Inspector.into("#observablehq-f974ea53 .observablehq-viewof-jitterValue")();
if (name === "chart") return Inspector.into("#observablehq-f974ea53 .observablehq-chart")();
if (name === "viewof collisionR") return Inspector.into("#observablehq-f974ea53 .observablehq-viewof-collisionR")();
if (name === "chartForce") return Inspector.into("#observablehq-f974ea53 .observablehq-chartForce")();
});
</script>
</div>
</section>
<section>
<div><img src="../shared_images/UC_Berkeley_wordmark_cal_gold.png" alt="University Of California at Berkeley logo"></div>
</section>
</section>
<section id="someKeys">
<section>
<h2>Some Keys</h2><img class="fill" data-src="../shared_images/vad_book_alldiagrams/some_keys.png" alt="Some Keys">
</section>
<section class="full">
<h3>Some Keys: Categorical Regions</h3><img class="noMarginTopBottom" data-src="../shared_images/vad_book_alldiagrams/how_separate_order_align.png" alt="Separate Order and Align">
<ul class="noMarginTopBottom small">
<li class="fragment"><strong>Regions</strong>: contiguous bounded areas distinct from each other</li>
<ul class="small">
<li class="fragment">Using space to <strong>separate</strong> (proximity)</li>
<li class="fragment">Following expressiveness principle for categorical attributes</li>
</ul>
<li class="fragment">Use ordered attribute to <strong>order</strong> and <strong>align</strong> regions</li>
</ul><img class="noMarginTopBottom fill fragment" data-src="../shared_images/vad_book_alldiagrams/how_keys.png" alt="Keys">
</section>
<section>
<h2>Idiom: Barchart</h2>
<div class="flex">
<div class="half small">
<ul class="small">
<li class="fragment">One key, one value</li>
<li class="fragment"><strong>Data</strong>:</li>
<ul class="small">
<li class="fragment">One categorical attribute, one quantitative attribute</li>
</ul>
<li class="fragment"><strong>Mark</strong>: lines</li>
<li class="fragment"><strong>Channels:</strong></li>
<ul class="small">
<li class="fragment">Length to express quantitative value</li>
<li class="fragment">Spatial regions: one per mark</li>
<ul class="small">
<li class="fragment">Separated horizontally, aligned vertically</li>
<li class="fragment">Ordered by quantitative attribute</li>
<li class="fragment">By label (alphabetical), by length attribute (data-driven)</li>
</ul>
</ul>
<li class="fragment"><strong>Task:</strong></li>
<ul class="small">
<li class="fragment">Compare, lookup values</li>
</ul>
<li class="fragment"><strong>Scalability</strong></li>
<ul class="small">
<li class="fragment">Dozens to hundreds of levels for key attribute</li>
</ul>
</ul>
</div>
<div class="half"><img class="fill" data-src="../shared_images/vad_book_alldiagrams/barchart_example.png" alt="Barchart example"></div>
</div>
</section>
<section class="full">
<h3>Separate, Order, and Align</h3>
<div class="flex">
<div class="third">
<ul class="small">
<li class="fragment"><strong>Separate</strong>: helps differentiating</li>
<li class="fragment"><strong>Order</strong>: helps locating/lookup</li>
<li class="fragment"><strong>Align</strong>: helps comparing</li>
</ul>
</div>
<div class="twothirds">
<div id="observablehq-e122dc3a">
<div class="observablehq-viewof-options"></div>
<div class="observablehq-chart"></div>
<div style="overflow: hidden;"><a style="display: block; float:right;" href="https://observablehq.com/@berkeleyvis/separate-order-and-align"><object type="image/svg+xml" style="pointer-events: none;" width=180 height=22 data="https://static.observableusercontent.com/files/c3fab254a006f1a3a1f9f63aba8ab1460db4752529036b9962950bde0ec195bab823daa6b278b1c3401e545b3bd640ddfdcad805cf9859af218cb2b9fed4ddf0"></object></a></div>
</div>
<script type="module">
import {Runtime, Inspector} from "https://cdn.jsdelivr.net/npm/@observablehq/runtime@4/dist/runtime.js";
import define from "https://api.observablehq.com/@berkeleyvis/separate-order-and-align.js?v=3";
(new Runtime).module(define, name => {
if (name === "viewof options") return Inspector.into("#observablehq-e122dc3a .observablehq-viewof-options")();
if (name === "chart") return Inspector.into("#observablehq-e122dc3a .observablehq-chart")();
});
</script>
</div>
</div>
</section>
<section class="full">
<h3>Idiom: Stacked Bar Chart</h3>
<div class="flex">
<div class="twothirds">
<ul class="small">
<li class="fragment">Two keys, one value</li>
<li class="fragment"><strong>Data:</strong></li>
<ul class="small">
<li class="fragment">Two categorical attributes</li>
<li class="fragment">One quantitative attribute</li>
</ul>
<li class="fragment"><strong>Mark:</strong> vertical stack of line marks</li>
<li class="fragment"><strong>Glyph:</strong> composite object, internal structure from multiple marks</li>
<li class="fragment"><strong>Channels:</strong> length and color hue</li>
<ul class="small">
<li class="fragment">Spatial regions: one per glyph</li>
<li class="fragment">Aligned: full glyph, lowest bar component</li>
<li class="fragment">Unaligned: other bar components</li>
</ul>
<li class="fragment"><strong>Task:</strong> part-to-whole relationship</li>
<li class="fragment"><strong>Scalability</strong>: few bars, few stacked</li>
</ul>
</div>
<div class="third">
<figure><img data-src="../shared_images/stacked_bar_chart.png" alt="Stacked bar chart">
<figcaption class="reference"><a href="https://observablehq.com/@d3/stacked-bar-chart">https://observablehq.com/@d3/stacked-bar-chart</a></figcaption>
</figure>
</div>
</div>
</section>
<section>
<h3>Grouped Bar Chart</h3>
<div>
<div id="observablehq-6309ff14">
<div class="observablehq-chart"></div>
<div style="overflow: hidden;"><a style="display: block; float:right;" href="https://observablehq.com/d/ba03f7bcf4681e15"><object type="image/svg+xml" style="pointer-events: none;" width=180 height=22 data="https://static.observableusercontent.com/files/c3fab254a006f1a3a1f9f63aba8ab1460db4752529036b9962950bde0ec195bab823daa6b278b1c3401e545b3bd640ddfdcad805cf9859af218cb2b9fed4ddf0"></object></a></div>
</div>
<script type="module">
import {Runtime, Inspector} from "https://cdn.jsdelivr.net/npm/@observablehq/runtime@4/dist/runtime.js";
import define from "https://api.observablehq.com/d/ba03f7bcf4681e15.js?v=3";
(new Runtime).module(define, name => {
if (name === "chart") return Inspector.into("#observablehq-6309ff14 .observablehq-chart")();
});
</script>
</div>
</section>
<section>
<h3 class="demo">Stacked to Grouped</h3>
<div class="blocks" id="stackedToGroupedDivLayout"></div>
<div class="blocks" id="stackedToGroupedDiv"></div>
<script type="module">
import {Runtime, Inspector} from "https://cdn.jsdelivr.net/npm/@observablehq/runtime@4/dist/runtime.js";
import notebook from "https://api.observablehq.com/@d3/stacked-to-grouped-bars.js?v=3";
new Runtime().module(notebook, name => {
if (name === "chart") {
return new Inspector(document.querySelector("#stackedToGroupedDiv"));
}
if (name === "viewof layout") {
return new Inspector(document.querySelector("#stackedToGroupedDivLayout"));
}
if (name === "update") {
return true;
}
});
</script><a class="tiny" target="_blank" href="https://observablehq.com/@d3/stacked-to-grouped-bars">https://observablehq.com/@d3/stacked-to-grouped-bars</a>
</section>
<section class="full">
<h3 class="demo">Idiom: Dot Plot</h3>
<div>
<div id="observablehq-2fd2c4f4">
<div class="observablehq-viewof-primary"></div>
<div class="observablehq-chart"></div>
<div style="display:none" class="observablehq-update"></div>
<div style="overflow: hidden;"><a style="display: block; float:right;" href="https://observablehq.com/d/2dfb7c36a1da900f"><object type="image/svg+xml" style="pointer-events: none;" width=180 height=22 data="https://static.observableusercontent.com/files/c3fab254a006f1a3a1f9f63aba8ab1460db4752529036b9962950bde0ec195bab823daa6b278b1c3401e545b3bd640ddfdcad805cf9859af218cb2b9fed4ddf0"></object></a></div>
</div>
<script type="module">
import {Runtime, Inspector} from "https://cdn.jsdelivr.net/npm/@observablehq/runtime@4/dist/runtime.js";
import define from "https://api.observablehq.com/d/2dfb7c36a1da900f.js?v=3";
(new Runtime).module(define, name => {
if (name === "viewof primary") return Inspector.into("#observablehq-2fd2c4f4 .observablehq-viewof-primary")();
if (name === "chart") return Inspector.into("#observablehq-2fd2c4f4 .observablehq-chart")();
if (name === "update") return Inspector.into("#observablehq-2fd2c4f4 .observablehq-update")();
});
</script>
</div>
</section>
<section>
<h2>"Stacked Bar Charts Are the Worst."</h2>
<p>Interesting discussion from<a href="https://eagereyes.org/techniques/stacked-bars-are-the-worst"> Robert Kosara's blog.</a></p>
<p>Make sure to read the comments.</p>
</section>
<section class="full">
<h2>Idiom: Marimekko Chart</h2>
<figure>
<div style="max-width:800px">
<div id="observablehq-e25321be">
<div class="observablehq-chart"></div>
<div style="overflow: hidden;"><a style="display: block; float:right;" href="https://observablehq.com/d/61b24cb7f82428df"><object type="image/svg+xml" style="pointer-events: none;" width=180 height=22 data="https://static.observableusercontent.com/files/c3fab254a006f1a3a1f9f63aba8ab1460db4752529036b9962950bde0ec195bab823daa6b278b1c3401e545b3bd640ddfdcad805cf9859af218cb2b9fed4ddf0"></object></a></div>
</div>
<script type="module">
import {Runtime, Inspector} from "https://cdn.jsdelivr.net/npm/@observablehq/runtime@4/dist/runtime.js";
import define from "https://api.observablehq.com/d/61b24cb7f82428df.js?v=3";
(new Runtime).module(define, name => {
if (name === "chart") return Inspector.into("#observablehq-e25321be .observablehq-chart")();
});
</script>
</div>
<figcaption class="reference"><a href="https://observablehq.com/@karimdouieb/europe-electricity-production">https://observablehq.com/@karimdouieb/europe-electricity-production</a><br><br><a href="https://datavizcatalogue.com/methods/marimekko_chart.html">https://datavizcatalogue.com/methods/marimekko_chart.html</a></figcaption>
</figure>
</section>
<section>
<h2>Chart Axes</h2>
<div class="flex">
<div class="third">
<ul class="small">
<li class="fragment">Labeled axis is critical</li>
<li class="fragment">Avoid cropping y-axis</li>
<li class="fragment">Include 0 at bottom left</li>
<li class="fragment">Or slope misleads</li>
</ul>
</div>
<div class="twothirds">
<figure><img class="fill" data-src="../shared_images/vad_book_alldiagrams/planned_parenthood.png" alt="Planned Parenthood">
<figcaption class="reference"><a class="fill" href="http://www.thefunctionalart.com/2015/10/if-you-see-bullshit-say-bullshit.html">http://www.thefunctionalart.com/2015/10/if-you-see-bullshit-say-bullshit.html</a></figcaption>
</figure>
</div>
</div>
</section>
<section>
<div><img src="../shared_images/UC_Berkeley_wordmark_cal_gold.png" alt="University Of California at Berkeley logo"></div>
</section>
</section>
<section id="2Keys">
<section>
<h2>Two Keys</h2>
<ul class="small"></ul>
</section>
<section class="full">
<h2>Idiom: Heatmap</h2>
<div class="flex">
<div class="twothirds">
<ul class="small">
<li class="fragment">Two keys, one value</li>
<ul>
<li class="fragment">Data</li>
<ul>
<li class="fragment">Two categorical attributes (gene, experimental condition)</li>
<li class="fragment">One quantitative attribute (expression levels)</li>
</ul>
<li class="fragment">Marks: area</li>
<ul>
<li class="fragment">Separate and align in 2D matrix</li>
<li class="fragment">Indexed by two categorical attributes</li>
</ul>
<li class="fragment">Channels</li>
<ul>
<li class="fragment">Color by quantitative attrib</li>
<ul>
<li class="fragment">(Ordered diverging colormap)</li>
</ul>
</ul>
<li class="fragment">Task: find clusters, outliers</li>
<li class="fragment">Scalability</li>
<ul>
<li class="fragment">One million items, hundreds of categorical levels, about ten quantitative attribute levels</li>
</ul>
</ul>
</ul>
</div>
<div class="third">
<figure><img class="fill" data-src="../shared_images/vad_book_alldiagrams/heatmap.png" alt="Heatmap"></figure>
</div>
</div>
</section>
<section>
<h3 class="demo">Idiom: Cluster Heatmap</h3>
<div class="flex">
<div class="half">
<ul class="small">
<li class="fragment">In addition</li>
<ul>
<li class="fragment">Derived data</li>
<ul>
<li class="fragment">Two cluster hierarchies</li>
</ul>
<li class="fragment">Dendrogram</li>
<ul>
<li class="fragment">Parent-child relationships in tree with connection line marks</li>
<li class="fragment">Leaves aligned so interior branch heights easy to compare</li>
</ul>
<li class="fragment">Heatmap</li>
<ul>
<li class="fragment">Marks (re-)ordered by cluster hierarchy traversal</li>
<li class="fragment">Task: assess quality of clusters found by automatic methods</li>
</ul>
</ul>
</ul>
</div>
<div class="half">
<figure><img class="fill" style="max-width:400px" data-src="../shared_images/vad_book_alldiagrams/cluster_heatmap.png" alt="Cluster Heatmap"></figure>
<figure><img class="fill" data-src="../shared_images/vad_book_alldiagrams/two_keys.png" alt="Two Keys"></figure>
</div>
</div>
</section>
<section>
<div><img src="../shared_images/UC_Berkeley_wordmark_cal_gold.png" alt="University Of California at Berkeley logo"></div>
</section>
</section>
<section id="axisOrientation">
<section>
<h1>Axis Orientation</h1><img class="fill" data-src="../shared_images/vad_book_alldiagrams/how_axis_orientation_only.png" alt="Axis orientation">
</section>
<section class="full">
<h3>Idiom: Scatterplot Matrix</h3>
<div class="flex">
<div class="half">
<ul class="small">
<li class="fragment">Rectilinear axes, point mark</li>
<li class="fragment">All possible pairs of axes</li>
<li class="fragment">Scalability</li>
<ul>
<li class="fragment">One dozen attributes</li>
<li class="fragment">Dozens to hundreds of items</li>
</ul>
<li class="fragment">Task:</li>
<ul>
<li class="fragment">Summarize/explore</li>
</ul>
</ul>
</div>
<div class="half">
<div id="observablehq-0a20feb3"></div>
<script type="module">
import {Runtime, Inspector} from "https://cdn.jsdelivr.net/npm/@observablehq/runtime@4/dist/runtime.js";
import define from "https://api.observablehq.com/@d3/brushable-scatterplot-matrix.js?v=3";
const inspect = Inspector.into("#observablehq-0a20feb3");
(new Runtime).module(define, name => name === "chart" ? inspect() : undefined);
</script>
</div>
</div>
</section>
<section class="full">
<h3>Idiom: Parallel Coordinates</h3>
<div class="flex">
<div class="half">
<ul class="small">
<li class="fragment">Parallel axes, jagged line representing item</li>
<li class="fragment">Rectilinear axes, item as point</li>
<li class="fragment">Axis ordering is major challenge</li>
<li class="fragment">Scalability</li>
<ul>
<li class="fragment">Dozens of attributes</li>
<li class="fragment">Hundreds of items</li>
</ul>
<li class="fragment">Task:</li>
<ul>
<li class="fragment">Summarize/explore</li>
</ul>
</ul>
</div>
<div class="half">
<div id="observablehq-e6eae5aa">
<div class="observablehq-viewof-keyz"></div>
<div class="observablehq-chart"></div>
<div style="overflow: hidden;"><a style="display: block; float:right;" href="https://observablehq.com/@d3/parallel-coordinates"><object type="image/svg+xml" style="pointer-events: none;" width=180 height=22 data="https://static.observableusercontent.com/files/c3fab254a006f1a3a1f9f63aba8ab1460db4752529036b9962950bde0ec195bab823daa6b278b1c3401e545b3bd640ddfdcad805cf9859af218cb2b9fed4ddf0"></object></a></div>
</div>
<script type="module">
import {Runtime, Inspector} from "https://cdn.jsdelivr.net/npm/@observablehq/runtime@4/dist/runtime.js";
import define from "https://api.observablehq.com/d/1c5aef8b35140e76.js?v=3";
(new Runtime).module(define, name => {
if (name === "viewof keyz") return Inspector.into("#observablehq-e6eae5aa .observablehq-viewof-keyz")();
if (name === "chart") return Inspector.into("#observablehq-e6eae5aa .observablehq-chart")();
});
</script>
</div>
</div>
</section>
<section>
<h2>Task Correlation</h2>
<div class="flex">
<div class="half">
<ul class="small">
<li class="fragment">Scatterplot matrix</li>
<ul>
<li class="fragment">Positive correlation</li>
<ul>
<li class="fragment">Diagonal low-to-high</li>
</ul>
<li class="fragment">Negative correlation</li>
<ul>
<li class="fragment">Diagonal high-to-low</li>
</ul>
<li class="fragment">Uncorrelated: spread out</li>
</ul>
</ul>
<ul class="small">
<li class="fragment">Parallel coordinates</li>
<ul>
<li class="fragment">Positive correlation</li>
<ul>
<li class="fragment">Parallel line segments</li>
</ul>
<li class="fragment">Negative correlation</li>
<ul>
<li class="fragment">All segments cross at halfway point</li>
</ul>
<li class="fragment">Uncorrelated</li>
<ul>
<li class="fragment">Scattered crossings</li>
</ul>
</ul>
</ul>
</div>
<div class="half">
<figure><img src="../shared_images/correlation.png" alt="Correlation">
<figcaption class="reference">
<div>[Hyperdimensional Data Analysis Using Parallel Coordinates. Wegman. Journ. American Statistical Association 85:411 (1990), 664–675.]</div>
<div>[A layered grammar of graphics. Wickham. Journ. Computational and Graphical Statistics 19:1 (2010), 3–28.]</div>
</figcaption>
</figure>
</div>
</div>
</section>
<section>
<h2>Orientation Limitations</h2>
<div class="flex">
<div class="half">
<ul class="small">
<li class="fragment">Rectilinear: scalability with regard to #axes</li>
<ul>
<li class="fragment">Two axes best</li>
<li class="fragment">Three problematic</li>
<li class="fragment">Four or more impossible</li>
</ul>
<li class="fragment">Parallel: unfamiliarity, training time</li>
</ul>
</div>
<div class="half"></div>
</div>
</section>
<section>
<h3 class="demo">Navio</h3>
<iframe class="blocks" data-src="https://navio.dev"></iframe><a class="tiny" target="_blank" href="https://navio.dev">https://navio.dev</a>
</section>
<section>
<h2>Bonus: InMens</h2>
<p>What about millions of points?</p><a target="_blank" href="http://vis.stanford.edu/projects/immens/demo/splom/">http://vis.stanford.edu/projects/immens/demo/splom/</a>
</section>
<section>
<div><img src="../shared_images/UC_Berkeley_wordmark_cal_gold.png" alt="University Of California at Berkeley logo"></div>
</section>
</section>
<section id="radial">
<section>
<h1>Radial Orientations</h1>
</section>
<section>
<h3>Idioms: Radial Bar Chart, Star Plot</h3>
<div class="flex">
<div class="half">
<ul class="small">
<li class="fragment">Radial bar chart</li>
<ul>
<li class="fragment">Radial axes, meet at central ring, line mark</li>
</ul>
<li class="fragment">Star plot</li>
<ul>
<li class="fragment">Radial axes, meet at central point, line mark</li>
</ul>
<li class="fragment">Bar chart</li>
<ul>
<li class="fragment">Rectilinear axes, aligned vertically</li>
</ul><br>
<li class="fragment">Accuracy</li>
<ul class="small">
<li class="fragment">Length unaligned with radial</li>
<li class="fragment">Less accurate than aligned with rectilinear</li>
</ul>
</ul>
</div>
<div class="half">
<figure><img style="max-width:200px" src="../shared_images/radar_star.png" alt=""></figure>
</div>
</div>
</section>
<section>
<h2>Idiom: Radar Plots</h2>
<div class="flex">
<div class="half">
<ul>
<li class="fragment">Task: comparison</li>
<li class="fragment">Scalability: similar to parallel coordinates</li>
<li class="fragment">Order of attributes matter</li>
</ul>
</div>
<div class="half">
<figure><img style="max-width:600px" src="../shared_images/radar.png" alt="">
<figcaption class="reference">[Slide courtesy of Ben Jones]</figcaption>
</figure>
</div>
</div>
</section>
<section>
<h4>“Radar Graphs: Avoid them (99.9% of the time).”</h4>
<figure>
<div class="r-stack"><img class="fragment fill" style="max-width:700px" data-src="../shared_images/vad_book_alldiagrams/avoid_radar_charts.png" alt="Avoid Radar Charts"><img class="fragment" data-src="../shared_images/vad_book_alldiagrams/radar_graph_fixed.png" alt="Radar graph fixed"></div>
<figcaption class="reference"><a href="http://www.thefunctionalart.com/2012/11/radar-graphs-avoid-them-999-of-time.html">http://www.thefunctionalart.com/2012/11/radar-graphs-avoid-them-999-of-time.html</a>
<div>[Slide courtesy of Ben Jones]</div>
</figcaption>
</figure>
</section>
<section>
<h3>Idioms: Pie Chart, Polar Area Chart</h3>
<div class="flex">
<div class="half">
<ul class="tiny">
<li class="fragment">Pie chart:</li>
<ul>
<li class="fragment">Area marks with angle channel</li>
<li class="fragment">Accuracy: angle/area much less accurate than line length</li>
</ul><br>
<li class="fragment">Polar area chart:</li>
<ul>
<li class="fragment">Area marks with length channel</li>
<li class="fragment">More direct analog to bar charts</li>
</ul><br>
<li class="fragment">Data:</li>
<ul>
<li class="fragment">One categorical key attribute, 1 quantitative value attribute</li>
</ul>
<li class="fragment">Task:</li>
<ul>
<li class="fragment">Part-to-whole judgements</li>
</ul>
</ul>
</div>
<div class="half">
<figure><img style="max-width:200px" src="../shared_images/pie_polar.png" alt="Pie Polar">
<figcaption class="reference">[A layered grammar of graphics. Wickham. Journ. Computational and Graphical Statistics 19:1 (2010), 3–28.]</figcaption>
</figure>
</div>
</div>
</section>
<section>
<h2>Pie Chart Perception</h2>
<div class="flex">
<div class="half">
<ul class="small">
<li class="fragment">Some empirical evidence that people respond to arc length</li>
<ul>
<li class="fragment">Not angles</li>
<li class="fragment">Maybe also areas...?</li>
</ul>
<li class="fragment">Donut charts no worse than pie charts</li>
</ul>
</div>
<div class="half">
<figure><img class="fill" data-src="../shared_images/vad_book_alldiagrams/pie_chart_perception.png" alt="Pie chart perception">
<figcaption class="reference">[Arcs, Angles, or Areas: Individual Data Encodings in Pie and Donut Charts.
Skau and Kosara. Proc. EuroVis 2016.]</figcaption>
</figure>
</div>
</div>
</section>
<section>
<h2>Pie chart Perception (cont.)</h2>
<div class="flex">
<div class="half">
<ul class="small">
<li class="fragment">Meta-points</li>
<ul>
<li class="fragment">Redesign of paper figures in later blog post</li>
<ul>
<li class="fragment">Violin plots good for analysis but too detailed for presentation</li>
</ul>
<li class="fragment">Tamara's advice: still dubious for pie/donut charts</li>
<ul>
<li class="fragment">Sometimes okay if just two attributes</li>
</ul>
</ul>
</ul>
</div>
<div class="half">
<figure><img class="fill" data-src="../shared_images/vad_book_alldiagrams/pie_chart_perception_2.png" alt="Pie chart perception 2">
<figcaption class="reference"><a href="https://eagereyes.org/blog/2016/an-illustrated-tour-of-the-pie-chart-study-results">https://eagereyes.org/blog/2016/an-illustrated-tour-of-the-pie-chart-study-results</a></figcaption>
</figure>
</div>
</div>
</section>
<section>
<h3>Idioms: Normalized Stacked Bar Chart</h3>
<div class="flex">
<div class="half">
<ul class="tiny">
<li class="fragment">Task:</li>
<ul>
<li class="fragment">Part-to-whole judgments</li>
</ul><br>
<li class="fragment">Normalized stacked bar chart</li>
<ul>
<li class="fragment">Stacked bar chart, normalized to full vertical height</li>
<li class="fragment">Single stacked bar equivalent to full pie</li>
<ul>
<li class="fragment">High information density: requires narrow rectangle</li>
</ul>
</ul><br>
<li class="fragment">Pie chart</li>
<ul>
<li class="fragment">Information density: requires large circle</li>
</ul>
</ul>
</div>
<div class="half">
<figure><img class="fill" style="max-width: 300px" data-src="../shared_images/vad_book_alldiagrams/normalized_stacked_barchart.png" alt="Normalized Stacked Bar Chart">
<figcaption class="reference"><a href="http://bl.ocks.org/mbostock/3886208">http://bl.ocks.org/mbostock/3886208</a><a href="http://bl.ocks.org/mbostock/3887235">http://bl.ocks.org/mbostock/3887235</a><a href="http://bl.ocks.org/mbostock/3886394">http://bl.ocks.org/mbostock/3886394</a></figcaption>
</figure>
</div>
</div>
</section>
<section>
<h2>Idiom: Glyphmaps</h2>
<div class="flex">
<div class="half">
<ul class="small">
<li class="fragment">Rectilinear good for linear vs. nonlinear trends</li>
<li class="fragment">Radial good for cyclic patterns</li>
</ul><br><img class="fragment" src="../shared_images/vad_book_alldiagrams/axis_rectilinear_and_radial.png" alt="Axis rectilinear and radial">
</div>
<div class="half">
<figure><img class="fill" data-src="../shared_images/vad_book_alldiagrams/glyphmaps.png" alt="Glyphmap">
<figcaption class="reference">[Glyph-maps for Visually Exploring Temporal Patterns in Climate Data and Models. Wickham, Hofmann, Wickham, and Cook. Environmetrics 23:5 (2012), 382–393.]</figcaption>
</figure>
</div>
</div>
</section>
<section data-background-size="contain" data-background-iframe="https://sxywu.com/filmflowers/"></section>
<section>
<h3 class="demo">Film Flowers</h3><a class="tiny" target="_blank" href="https://sxywu.com/filmflowers/">Film Flowers by Shirley Wu https://sxywu.com/filmflowers/</a>
</section>
<section>
<h2>Radial Orientation</h2>
<div class="flex">
<div class="half">
<ul class="small">
<li class="fragment">Perceptual limits</li>
<ul>
<li class="fragment">Polar coordinate asymmetry</li>
<ul>
<li class="fragment">Angles lower precision than lengths</li>
<li class="fragment">Frequently problematic</li>
<li class="fragment">Sometimes can be deliberately exploited!</li>
<ul>
<li class="fragment">For two attributes of very unequal importance</li>
</ul>
</ul>
</ul>
</ul>
<figure><img src="../shared_images/vad_book_alldiagrams/radial_weaknesses.png" alt="Radial Weaknesses">
<figcaption class="reference">[Uncovering Strengths and Weaknesses of Radial Visualizations - an Empirical Approach. Diehl, Beck and Burch. IEEE TVCG (Proc. InfoVis) 16(6):935--942, 2010.]</figcaption>
</figure>
</div>
<div class="half"><img style="max-width:200px" src="../shared_images/vad_book_alldiagrams/axis_orientation_vertical.png" alt="Axis Orientation"></div>
</div>
</section>
<section>
<h2>Idiom: Dense Software Overviews</h2>
<div class="flex">
<div class="half">
<ul class="small">
<li class="fragment">Data: text</li>
<ul>
<li class="fragment">Text and one quantitative attribute per line</li>
</ul>
<li class="fragment">Derived data:</li>
<ul>
<li class="fragment">One pixel high line</li>
<li class="fragment">Length according to original</li>
</ul>
<li class="fragment">Color line by attribute</li>
<li class="fragment">Scalability</li>
<ulli class="fragment">Over 10,000 lines</ulli>
</ul>
</div>
<div class="half">
<figure><img src="../shared_images/vad_book_alldiagrams/dense_software_overviews.png" alt="Dense Software Overviews">
<figcaption class="reference">[Visualization of test information to assist fault localization. Jones, Harrold, Stasko. Proc. ICSE 2002, p 467-477.]</figcaption>
</figure>
</div>
</div>
</section>
<section>
<div><img src="../shared_images/UC_Berkeley_wordmark_cal_gold.png" alt="University Of California at Berkeley logo"></div>
</section>
</section>
<section id="tablesD3">
<section>
<h1>Tables with D3</h1>
</section>
<section class="full">
<h3 class="demo">Idiom: Scatterplot</h3>
<div class="blocks" id="scatterplotDiv"></div>
<script type="module">
import {Runtime, Inspector} from "https://cdn.jsdelivr.net/npm/@observablehq/runtime@4/dist/runtime.js";
import notebook from "https://api.observablehq.com/@john-guerra/scatterplot.js?v=3";
new Runtime().module(notebook, name => {
if (name === "chart") {
return new Inspector(document.querySelector("#scatterplotDiv"));
}
});
</script><a class="tiny" target="_blank" href="https://observablehq.com/@john-guerra/scatterplot">https://observablehq.com/@john-guerra/scatterplot</a>
</section>
<section>
<h3 class="demo">Barchart</h3>
<iframe class="blocks" data-src="http://blockbuilder.org/mbostock/3885304"></iframe><a class="tiny" target="_blank" href="http://blockbuilder.org/mbostock/3885304">http://blockbuilder.org/mbostock/3885304</a>
</section>
<section>
<h3 class="demo">Stacked Barchart</h3>
<iframe class="blocks" data-src="http://blockbuilder.org/mbostock/3886208"></iframe><a class="tiny" target="_blank" href="http://blockbuilder.org/mbostock/3886208">http://blockbuilder.org/mbostock/3886208</a>
</section>
<section>
<h3 class="demo">d3.Stack and d3.Nest</h3>
<div class="blocks" id="d3stackandnest"></div>
<script type="module">
import {Runtime, Inspector} from "https://cdn.jsdelivr.net/npm/@observablehq/runtime@4/dist/runtime.js";
import define from "https://api.observablehq.com/@john-guerra/d3-stack-with-d3-nest.js?v=3";
const inspect = Inspector.into("#d3stackandnest");
(new Runtime).module(define, name => name === "chart" ? inspect() : undefined);
</script><a class="tiny" target="_blank" href="https://observablehq.com/@john-guerra/d3-stack-with-d3-nest">https://observablehq.com/@john-guerra/d3-stack-with-d3-nest</a>
</section>
<section>
<h3 class="demo">d3 Stack</h3><a class="tiny" href="https://github.com/d3/d3-shape/blob/v1.3.5/README.md#stack">https://github.com/d3/d3-shape/blob/v1.3.5/README.md#stack</a><img style="height:400px" src="../shared_images/vad_book_alldiagrams/d3_stack.png" alt="d3 stack">
</section>
<section>
<h3 class="demo">Heatmap</h3>
<iframe class="blocks" data-src="http://blockbuilder.org/ianyfchang/8119685"></iframe><a class="tiny" target="_blank" href="http://blockbuilder.org/ianyfchang/8119685">http://blockbuilder.org/ianyfchang/8119685</a>
</section>
<section>
<h3 class="demo">Scatterplot Matrix</h3>
<iframe class="blocks" data-src="http://blockbuilder.org/mbostock/4063663"></iframe><a class="tiny" target="_blank" href="http://blockbuilder.org/mbostock/4063663">http://blockbuilder.org/mbostock/4063663</a>
</section>
<section>
<h3 class="demo">Parallel Coordinates</h3>
<iframe class="blocks" data-src="http://blockbuilder.org/syntagmatic/3150059"></iframe><a class="tiny" target="_blank" href="http://blockbuilder.org/syntagmatic/3150059">http://blockbuilder.org/syntagmatic/3150059</a>
</section>
<section>
<h3 class="demo">Polar Area Chart</h3>
<iframe class="blocks" data-src="http://blockbuilder.org/curran/94f1376b946c9d217014"></iframe><a class="tiny" target="_blank" href="http://blockbuilder.org/curran/94f1376b946c9d217014">http://blockbuilder.org/curran/94f1376b946c9d217014</a>
</section>
<section>
<h3 class="demo">Pie chart</h3>
<iframe class="blocks" data-src="http://blockbuilder.org/mbostock/3887235"></iframe><a class="tiny" target="_blank" href="http://blockbuilder.org/mbostock/3887235">http://blockbuilder.org/mbostock/3887235</a>
</section>
<section>
<h3 class="demo">Donut chart</h3>
<iframe class="blocks" data-src="http://blockbuilder.org/mbostock/1346410"></iframe><a class="tiny" target="_blank" href="http://blockbuilder.org/mbostock/1346410">http://blockbuilder.org/mbostock/1346410</a>
</section>
<section>
<h3 class="demo">Stacked bar chart normalized</h3>
<iframe class="blocks" data-src="http://blockbuilder.org/mbostock/3886394"></iframe><a class="tiny" target="_blank" href="http://blockbuilder.org/mbostock/3886394">http://blockbuilder.org/mbostock/3886394</a>
</section>
<section>
<div><img src="../shared_images/UC_Berkeley_wordmark_cal_gold.png" alt="University Of California at Berkeley logo"></div>
</section>
</section>
<section id="review">
<section>
<h2>What We Learned</h2>
<ul class="small line-compressed" style="margin-top: -2rem">
<li>Arranging tables</li>
<li class="fragment">Zero keys
<ul class="tiny">
<li>Scatterplots</li>
</ul>
</li>
<li class="fragment">Some keys
<ul class="tiny">
<li>Barcharts</li>
<li>Heatmaps</li>
</ul>
</li>
<li class="fragment">Other axis orientations
<ul class="tiny">
<li>Sploms</li>
<li>Parallel coordinates</li>
<li>Navio</li>
</ul>
</li>
<li class="fragment">Radial representations
<ul class="tiny">
<li>Pie charts</li>
<li>Radar plots</li>
</ul>
</li>
</ul>
</section>
<section>
<div><img src="../shared_images/UC_Berkeley_wordmark_cal_gold.png" alt="University Of California at Berkeley logo"></div>
</section>
</section>
</div>
</div>
<script src="../js/reveal.js"></script>
<script src="../plugin/zoom/zoom.js"></script>
<script src="../plugin/notes/notes.js"></script>
<script src="../plugin/search/search.js"></script>
<script src="../plugin/markdown/markdown.js"></script>
<script src="../plugin/highlight/highlight.js"></script>
<script>
Reveal.initialize({
controls: true,
progress: true,
history: true,
center: true,
hash: true,
//- transition: "convex",
//- width: "100%",
//- height: "720px",
plugins: [ RevealZoom, RevealNotes, RevealSearch, RevealMarkdown, RevealHighlight ]
});