https://www.cs.ubc.ca/~tmm/courses/436V-20
Information Visualization Tables
Tamara Munzner Department of Computer Science University of British Columbia
Lect 6/7, 23/28 Jan 2020
Information Visualization Tables Tamara Munzner Department of - - PowerPoint PPT Presentation
Information Visualization Tables Tamara Munzner Department of Computer Science University of British Columbia Lect 6/7, 23/28 Jan 2020 https://www.cs.ubc.ca/~tmm/courses/436V-20 Tables 2 Focus on Tables Dataset Types Spatial Net Tables
https://www.cs.ubc.ca/~tmm/courses/436V-20
Lect 6/7, 23/28 Jan 2020
2
3
Node em)
Fields (Continuous)
Attributes (columns) Value in cell
Cell Grid of positions
Geometry (Spatial)
Position
Spatial
Net Tables
Attributes (columns) Items (rows) Cell containing value
Dataset Types
Multidimensional Table
Value in cell
Networks
Link Node (item)
Trees
4
BPM T1 BPM T2 BPM T3 Amy 90 130 150 Basil 70 110 109 Clara 60 140 141 Desmond 84 100 108 Charles 81 110 130 Age Best 100 m Furthest Jump Sex Amy 16 13.2 5.2 F Basil 18 12.4 4.2 F Clara 14 14.1 2.5 F Desmond 22 10.01 6.3 M Charles 19 11.3 5.3 M
–same data type? same scales?
–how many attributes?
–how many items?
5
Age Gender Height Bob 25 M 181 Alice 22 F 185 Chris 19 M 175 BPM 1 BPM 2 BPM 3 Bob 65 120 145 Alice 80 135 185 Chris 45 115 135
6
no / little analytics strong analytics component
Scatterplot Matrices
[Bostock]
Parallel Coordinates
[Bostock]
Pixel-based visualizations / heat maps Multidimensional Scaling
[Doerk 2011] [Chuang 2012]
7
Deviation Correlation Change over Time Ranking Distribution Part to whole Magnitude
https://github.com/ft-interactive/chart-doctor/tree/master/visual-vocabulary https://gramener.github.io/visual-vocabulary-vega/#/Magnitude/
8
–independent attribute –used as unique index to look up items –simple tables: 1 key –multidimensional tables: multiple keys
–dependent attribute, value of cell
–0, 1, 2, many...
1 Key 2 Keys 3 Keys Many Keys
List Recursive Subdivision Volume Matrix
Express Values Tables
Attributes (columns) Items (rows) Cell containing value
Multidimensional Table
Value in cell
9
1 Key 2 Keys 3 Keys Many Keys
List Recursive Subdivision Volume Matrix
Express Values
–quantitative attributes
–data
–mark: points –channels
–tasks
–scalability
10
[A layered grammar of graphics.
Express Values
–color –size (bubbleplots)
–shape
11
https://observablehq.com/@d3/scatterplot-with-shapes
https://www.d3-graph-gallery.com/graph/bubble_basic.html
12
https://www.mathsisfun.com/data/scatter-xy-plots.html
https://www.cs.ubc.ca/labs/imager/tr/2014/DRVisTasks/
13
1 Key 2 Keys 3 Keys Many Keys
List Recursive Subdivision Volume Matrix
Express Values
–using space to separate (proximity) –following expressiveness principle for categorical attributes
14
1 Key 2 Keys 3 Keys Many Keys
List Recursive Subdivision Volume Matrix
–data
–mark: lines –channels
– separated horizontally, aligned vertically – ordered by quant attrib » by label (alphabetical), by length attrib (data-driven)
–task
–scalability
15
100 75 50 25 Animal Type 100 75 50 25 Animal Type
LIMITATION: Hard to know rank. What’s the 4th most? The 7th?
[Slide courtesy of Ben Jones]
[Slide courtesy of Ben Jones]
LIMITATION: Hard to make comparisons
[Slide courtesy of Ben Jones]
–data
–mark: vertical stack of line marks
marks
–channels
– aligned: full glyph, lowest bar component – unaligned: other bar components
–task
–scalability
19
https://www.d3-graph-gallery.com/graph/ barplot_stacked_basicWide.html
– emphasizing horizontal continuity
– data
– derived data
counts
– scalability
– more than stacked bars, since most layers don’t extend across whole chart
20
[Stacked Graphs Geometry & Aesthetics. Byron and
Trans. Visualization and Computer Graphics (Proc. InfoVis 2008) 14(6): 1245–1252, (2008).]
https://flowingdata.com/2008/02/25/ebb-and-flow-of-box-office-receipts-over-past-20-years/
– data
– mark: points AND line connection marks between them – channels
horizontal regions
– task
– connection marks emphasize ordering of items along key axis by explicitly showing relationship between
– scalability
21
20 15 10 5 Year
20 15 10 5 Year
–bar charts if categorical –line charts if ordered
–violates expressiveness principle
that it overrides semantics!
– “The more male a person is, the taller he/she is”
22
after [Bars and Lines: A Study of Graphic Communication. Zacks and
1073–1079.]
Female Male
60 50 40 30 20 10
Female Male
60 50 40 30 20 10
10-year-olds 12-year-olds
60 50 40 30 20 10 60 50 40 30 20 10
10-year-olds 12-year-olds
–include 0 at bottom left –or slope misleads
23
http://www.thefunctionalart.com/2015/10/if-you-see-bullshit-say-bullshit.html
–acceptable if commensurate –beware, very easy to mislead!
24
–popular in journalism –horiz + vert axes: value attribs –line connection marks: temporal order –alternative to dual-axis charts
–engaging, but correlation unclear
25
http://steveharoz.com/research/connected_scatterplot/
[The Connected Scatterplot for Presenting Paired Time Series. Haroz, Kosara and Franconeri. IEEE TVCG 22(9):2174-86, 2016.]
–Cleveland perceptual argument: most accurate angle judgement at 45
26 https://github.com/jennybc/r-graph-catalog/tree/master/figures/fig07-01_sunspot-data-aspect-ratio-1 https://github.com/jennybc/r-graph-catalog/tree/master/figures/fig07-02_annual-report-aspect-ratio-2
– frequency domain analysis to find ratios
– find interesting spikes/ranges in power spectrum
– create trend curves (red) for each aspect ratio
27
[Multi-Scale Banking to 45 Degrees. Heer and Agrawala, Proc InfoVis 2006]
weekly daily
–minimize the arc length of curve while keeping the area of the plot constant –parametrization and scale invariant –symmetry preserving –robust & fast to compute
–young field; prescriptive advice changes rapidly –reasonable defaults required deep dive into perception meets math
28
[Arc Length-Based Aspect Ratio Selection. Talbot, Gerth, and Hanrahan. Proc InfoVis 2011]
Banking to 45 Multiscale Banking Arc Length
–1 key + 1 value
–index –plot instead of original value
–principle: normalized, not absolute
–same as standard line chart
29
https://public.tableau.com/profile/ben.jones#!/vizhome/CAStateRevenues/Revenues
–data
–mark: line
–channels
duration)
–task
dependencies between items
–scalability
30
https://www.r-bloggers.com/gantt-charts-in-r-using-plotly/
[Performance Analysis and Visualization of Parallel Systems Using SimOS and Rivet: A Case Study. Bosch, Stolte, Stoll, Rosenblum, and Hanrahan. Proc. HPCA 2000.]
– data
– mark: point + line
– channels
– task
– scalability
31
https://public.tableau.com/profile/ben.jones#!/vizhome/Slopegraphs/Slopegraphs
–engaging/evocative –inverted y axis
32
https://public.tableau.com/profile/ben.jones#!/vizhome/EdgarAllanPoeViz/EdgarAllanPoeViz
https://public.tableau.com/profile/ben.jones#!/ vizhome/EdgarAllanPoeBoring/EdgarAllenPoeBoring
[Slide inspired by Ben Jones]
33
1 Key 2 Keys 3 Keys Many Keys
List Recursive Subdivision Volume Matrix
Express Values
–data
–marks: point
– indexed by 2 categorical attributes
–channels
– (ordered diverging colormap)
–task
–scalability
34
1 Key 2 Keys
List Matrix
Many Keys
Recursive Subdivision
–derived data
–dendrogram
–heatmap
35
36
–radial axes meet at central ring, line mark
–radial axes, meet at central point, line mark
–rectilinear axes, aligned vertically
–length unaligned with radial
37
[Vismon: Facilitating Risk Assessment and Decision Making In Fisheries Management. Booshehrian, Möller, Peterman, and Munzner. Technical Report TR 2011-04, Simon Fraser University, School of Computing Science, 2011.]
LIMITATION: Not good when categories aren’t cyclic
[Slide courtesy of Ben Jones]
“Radar graphs: Avoid them (99.9% of the time)”
http://www.thefunctionalart.com/2012/11/radar-graphs-avoid-them-999-of-time.html
[Slide courtesy of Ben Jones]
"Diagram of the causes of mortality in the army in the East" (1858)
[Slide courtesy of Ben Jones]
–line marks with angle channel: variable (sector) width –separated & aligned radially, uniform height –perceived: probably not angle! maybe area or arc length –accuracy: all are less accurate than line length
–line marks with length channel: variable length – separated & aligned radially, uniform width –more direct analog to bar charts
–1 categ key attrib, 1 quant value attrib
–part-to-whole judgements
41
[A layered grammar of graphics.
–not angles –maybe also areas?…
42
https://eagereyes.org/blog/2016/an-illustrated-tour-of-the-pie-chart-study-results [Arcs, Angles, or Areas: Individual Data Encodings in Pie and Donut Charts. Skau and Kosara. Proc. EuroVis 2016.]
43
https://eagereyes.org/pie-charts
–part-to-whole judgements
–stacked bar chart, normalized to full vert height –single stacked bar equivalent to full pie
–information density: requires large circle
44
http://bl.ocks.org/mbostock/3886208, http://bl.ocks.org/mbostock/3887235, http://bl.ocks.org/mbostock/3886394.
3/21/2014 bl.ocks.org/mbostock/raw/3887235/ http://bl.ocks.org/mbostock/raw/3887235/ 1/1 <5 5-13 14-17 18-24 25-44 45-64 ≥65 3/21/2014 bl.ocks.org/mbostock/raw/3886394/ http://bl.ocks.org/mbostock/raw/3886394/ 1/1 UT TX ID AZ NV GA AK MSNMNE CA OK SDCO KSWYNC AR LA IN IL MNDE HI SCMOVA IA TN KY AL WAMDNDOH WI OR NJ MT MI FL NY DC CT PA MAWV RI NHME VT 0% 10% 20% 30% 40% 50% 60% 70% 80% 90% 100% Under 5 Years 5 to 13 Years 14 to 17 Years 18 to 24 Years 25 to 44 Years 45 to 64 Years 65 Years and Over 3/21/2014 bl.ocks.org/mbostock/raw/3886208/ http://bl.ocks.org/mbostock/raw/3886208/ 1/1 CA TX NY FL IL PA OH MI GA NC NJ VA WA AZ MA IN TN MO MD WI MN CO AL SC LA KY OR OK CT IA MS AR KS UT NV NMWV NE ID ME NH HI RI MT DE SD AK ND VT DC WY 0.0 5.0M 10M 15M 20M 25M 30M 35M Population 65 Years and Over 45 to 64 Years 25 to 44 Years 18 to 24 Years 14 to 17 Years 5 to 13 Years Under 5 Years 3/21/2014 bl.ocks.org/mbostock/raw/3886394/ http://bl.ocks.org/mbostock/raw/3886394/ 1/1 UT TX ID AZ NV GA AK MSNMNE CA OK SDCO KSWYNC AR LA IN IL MNDE HI SCMOVA IA TN KY AL WAMDNDOH WI OR NJ MT MI FL NY DC CT PA MAWV RI NHME VT 0% 10% 20% 30% 40% 50% 60% 70% 80% 90% 100% Under 5 Years 5 to 13 Years 14 to 17 Years 18 to 24 Years 25 to 44 Years 45 to 64 Years 65 Years and Over45
[Glyph-maps for Visually Exploring Temporal Patterns in Climate Data and Models. Wickham, Hofmann, Wickham, and Cook. Environmetrics 23:5 (2012), 382–393.]
Axis Orientation Rectilinear Parallel Radial
46
–rectilinear axes, point mark –all possible pairs of axes –scalability
items
47
n i n e c h a r a c t e r i s t i c s
A b a l
e ( s e a s n a i l s )
Wilkinson et al., 2005
–visual representation with orthogonal axes –can show only two attributes with spatial position channel
many attributes with position
– item encoded with a line with n segments –n is the number of attributes shown
–parallel axes, jagged line for item –rectilinear axes, item as point
–scalability
48
after [Visualization Course Figures. McGuffin, 2014. http://www.michaelmcguffin.com/courses/vis/]
Math Physics Dance Drama Math Physics Dance Drama Math Physics Dance Drama
100 90 80 70 60 50 40 30 20 10
Scatterplot Matrix Parallel Coordinates
Math Physics Dance Drama 85 90 65 50 40 95 80 50 40 60 70 60 90 95 80 65 50 90 80 90
Table
Axis Orientation Rectilinear Parallel Radial
–positive correlation
–negative correlation
–uncorrelated: spread out
–positive correlation
–negative correlation
–uncorrelated
49
[Hyperdimensional Data Analysis Using Parallel Coordinates.
(1990), 664–675.]
https://www.mathsisfun.com/data/scatter-xy-plots.html
–positive? –negative? –none? –not sure?
50
–usual solution: reorderable axes, interactive exploration –same weakness as many other techniques
–some algorithms proposed, none fully solve
51
52
53
–polar coordinate asymmetry
–frequently problematic
– for 2 attribs of very unequal importance
[Uncovering Strengths and Weaknesses of Radial Visualizations - an Empirical Approach. Diehl, Beck and Burch. IEEE TVCG (Proc. InfoVis) 16(6):935--942, 2010.]
54
–text + 1 quant attrib per line
–one pixel high line –length according to original
–10K+ lines
55
Layout Density Dense
[Visualization of test information to assist fault localization. Jones, Harrold, Stasko. Proc. ICSE 2002, p 467-477.]
56
Encode Arrange Express Separate Order Align
57
Express Values Separate, Order, Align Regions Separate Order
1 Key 2 Keys 3 Keys Many Keys
List Recursive Subdivision Volume Matrix
Align Axis Orientation Layout Density Dense Space-Filling Rectilinear Parallel Radial
58
Encode Arrange Express Separate Order Align Use Manipulate Facet Reduce Change Select Navigate Juxtapose Partition Superimpose Filter Aggregate Embed
How? Encode Manipulate Facet
Map Color Motion Size, Angle, Curvature, ...
Hue Saturation Luminance
Shape
Direction, Rate, Frequency, ...
from categorical and ordered attributes
–Making a Bar Chart with D3 and SVG [30 min]
–The General Update Pattern of D3.js [60 min] –Interaction with Unidirectional Data Flow [16 min] –Read: Reusable D3 Components
59
–1 What could be the goals of the designer for questions that this visualization answers (domain-specific & abstract)? –2 What data is represented in this visualization? Be specific. –3 How is each data type visually encoded (marks/channels)? –4 Can you read the data precisely? Is the visual encoding appropriately chosen?
data.
–fine to discuss with your peers, but draw your own solution. –mark your best design, briefly note why you think it's better.
60
61