week 4: manipulate, facet, reduce

54
http://www.cs.ubc.ca/~tmm/courses/journ16 Week 4: Manipulate, Facet, Reduce Tamara Munzner Department of Computer Science University of British Columbia JRNL 520H, Special Topics in Contemporary Journalism: Data Visualization Week 4: 4 October 2016

Upload: others

Post on 22-Nov-2021

9 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Week 4: Manipulate, Facet, Reduce

http://www.cs.ubc.ca/~tmm/courses/journ16

Week 4: Manipulate, Facet, ReduceTamara Munzner Department of Computer ScienceUniversity of British Columbia

JRNL 520H, Special Topics in Contemporary Journalism: Data VisualizationWeek 4: 4 October 2016

Page 2: Week 4: Manipulate, Facet, Reduce

Whereabouts

• Caitlin on travel this week and next week– don’t expect email answers until she returns; email Tamara instead!

• Tamara on travel Thu Oct 6 - Mon Oct 10–in Portland Fri/Sat to give another keynote, will still be answering email–short office hours in Sing Tao next week: 12:30-1:30pm

2

Page 3: Week 4: Manipulate, Facet, Reduce

News

• Assign 2 marks not out yet– stay tuned, just got back from Stanford late last night

• Today’s format– interleave foundations & demos

• Tamara will walk through Tableau demos• you follow along step by step on your own laptop• Tamara will take breaks to rove the room to help out folks who get stuck

3

Page 4: Week 4: Manipulate, Facet, Reduce

Last Time

4

Page 5: Week 4: Manipulate, Facet, Reduce

Demo 1: Stone Color Workbook

• Credit: Maureen Stone, Tableau Research–designer of Tableau color defaults, author of A Field Guide to Digital Color–workbook from Tableau Customer Conference 2014 talk

Seriously Colorful: Advanced Color Principles & Practices

• Tableau Lessons– more visual encoding practice– color palettes, univariate & bivariate– discrete (categorical) vs continuous (quantitative)

• Big Ideas– Tableau has many built-in features to get color right, but care still needed

5

Page 6: Week 4: Manipulate, Facet, Reduce

Demo 2: Intro to Maps

• Tableau Lessons– handling spatial data– multiple data sources– paths on maps– more on handling missing data: filtering

• Big Ideas– integrating visual encoding design choices with given spatial data

6

Page 7: Week 4: Manipulate, Facet, Reduce

7

Encode

ArrangeExpress Separate

Order Align

Use

Manipulate Facet Reduce

Change

Select

Navigate

Juxtapose

Partition

Superimpose

Filter

Aggregate

Embed

How?

Encode Manipulate Facet Reduce

Map

Color

Motion

Size, Angle, Curvature, ...

Hue Saturation Luminance

Shape

Direction, Rate, Frequency, ...

from categorical and ordered attributes

Page 8: Week 4: Manipulate, Facet, Reduce

How to handle complexity: 1 previous strategy + 3 more

8

Manipulate Facet Reduce

Change

Select

Navigate

Juxtapose

Partition

Superimpose

Filter

Aggregate

Embed

Derive

• derive new data to show within view

• change view over time• facet across multiple

views• reduce items/attributes

within single view

Page 9: Week 4: Manipulate, Facet, Reduce

9

Manipulate

Navigate

Item Reduction

Zoom

Pan/Translate

Constrained

Geometric or Semantic

Attribute Reduction

Slice

Cut

Project

Change over Time

Select

Page 10: Week 4: Manipulate, Facet, Reduce

Change over time

10

• change any of the other choices–encoding itself–parameters–arrange: rearrange, reorder–aggregation level, what is filtered...

–interaction entails change

Page 11: Week 4: Manipulate, Facet, Reduce

11

Idiom: Re-encode

made using Tableau, http://tableausoftware.com

System: Tableau

Page 12: Week 4: Manipulate, Facet, Reduce

Idiom: Reorder

12

• data: tables with many attributes• task: compare rankings

System: LineUp

[LineUp: Visual Analysis of Multi-Attribute Rankings. Gratzl, Lex, Gehlenborg, Pfister, and Streit. IEEE Trans. Visualization and Computer Graphics (Proc. InfoVis 2013) 19:12 (2013), 2277–2286.]

Page 13: Week 4: Manipulate, Facet, Reduce

Idiom: Realign

13

• stacked bars–easy to compare

• first segment• total bar

• align to different segment–supports flexible comparison

System: LineUp

[LineUp: Visual Analysis of Multi-Attribute Rankings.Gratzl, Lex, Gehlenborg, Pfister, and Streit. IEEE Trans. Visualization and Computer Graphics (Proc. InfoVis 2013) 19:12 (2013), 2277–2286.]

Page 14: Week 4: Manipulate, Facet, Reduce

Idiom: Animated transitions• smooth transition from one state to another

–alternative to jump cuts–support for item tracking when amount of change is limited

• example: multilevel matrix views• example: animated transitions in statistical data graphics

– https://vimeo.com/19278444

14[Using Multilevel Call Matrices in Large Software Projects. van Ham. Proc. IEEE Symp. Information Visualization (InfoVis), pp. 227–232, 2003.]

Page 15: Week 4: Manipulate, Facet, Reduce

Select and highlight

• selection: basic operation for most interaction• design choices

–how many selection types?• click vs hover: heavyweight, lightweight• primary vs secondary: semantics (eg source/target)

• highlight: change visual encoding for selection targets–color

• limitation: existing color coding hidden

–other channels (eg motion)–add explicit connection marks between items

15

Select

Page 16: Week 4: Manipulate, Facet, Reduce

Navigate: Changing item visibility

• change viewpoint–changes which items are visible within view–camera metaphor

• zoom– geometric zoom: familiar semantics – semantic zoom: adapt object representation based on available pixels

» dramatic change, or more subtle one

• pan/translate• rotate

– especially in 3D

–constrained navigation• often with animated transitions• often based on selection set

16

Navigate

Item Reduction

Zoom

Pan/Translate

Constrained

Geometric or Semantic

Page 17: Week 4: Manipulate, Facet, Reduce

Idiom: Semantic zooming• visual encoding change

–colored box–sparkline–simple line chart–full chart: axes and tickmarks

17

System: LiveRAC

[LiveRAC - Interactive Visual Exploration of System Management Time-Series Data. McLachlan, Munzner, Koutsofios, and North. Proc. ACM Conf. Human Factors in Computing Systems (CHI), pp. 1483–1492, 2008.]

Page 18: Week 4: Manipulate, Facet, Reduce

Navigate: Reducing attributes• continuation of camera

metaphor–slice

• show only items matching specific value for given attribute: slicing plane

• axis aligned, or arbitrary alignment

–cut• show only items on far slide of plane

from camera

–project• change mathematics of image creation

– orthographic– perspective– many others: Mercator, cabinet, ...

18[Interactive Visualization of Multimodal Volume Data for Neurosurgical Tumor Treatment. Rieder, Ritter, Raspe, and Peitgen. Computer Graphics Forum (Proc. EuroVis 2008) 27:3 (2008), 1055–1062.]

Attribute Reduction

Slice

Cut

Project

Page 19: Week 4: Manipulate, Facet, Reduce

Previous Demos

• Tableau Lessons– changing visual encoding– changing ordering (sorting)– navigation

• zoom/translate in maps

19

Page 20: Week 4: Manipulate, Facet, Reduce

20

Encode

ArrangeExpress Separate

Order Align

Use

Manipulate Facet Reduce

Change

Select

Navigate

Juxtapose

Partition

Superimpose

Filter

Aggregate

Embed

How?

Encode Manipulate Facet Reduce

Map

Color

Motion

Size, Angle, Curvature, ...

Hue Saturation Luminance

Shape

Direction, Rate, Frequency, ...

from categorical and ordered attributes

Page 21: Week 4: Manipulate, Facet, Reduce

Facet

21

Juxtapose

Partition

Superimpose

Page 22: Week 4: Manipulate, Facet, Reduce

Juxtapose and coordinate views

22

Share Encoding: Same/Different

Share Data: All/Subset/None

Share Navigation

Linked Highlighting

Page 23: Week 4: Manipulate, Facet, Reduce

Idiom: Linked highlighting

23

System: EDV• see how regions

contiguous in one view are distributed within another–powerful and

pervasive interaction idiom

• encoding: different–multiform

• data: all shared[Visual Exploration of Large Structured Datasets. Wills. Proc. New Techniques and Trends in Statistics (NTTS), pp. 237–246. IOS Press, 1995.]

Page 24: Week 4: Manipulate, Facet, Reduce

Demo 1: Seattle Construction

• Credit: Ben Jones

• Tableau Lessons– linking views with actions: highlight on hover– global filtering

• Big Ideas– linking views possible but somewhat clunky in Tableau

24

Page 25: Week 4: Manipulate, Facet, Reduce

Idiom: bird’s-eye maps

25

• encoding: same• data: subset shared• navigation: shared

–bidirectional linking

• differences–viewpoint–(size)

• overview-detail

System: Google Maps

[A Review of Overview+Detail, Zooming, and Focus+Context Interfaces. Cockburn, Karlson, and Bederson. ACM Computing Surveys 41:1 (2008), 1–31.]

Page 26: Week 4: Manipulate, Facet, Reduce

Idiom: Small multiples• encoding: same• data: none shared

–different attributes for node colors

–(same network layout)

• navigation: shared

26

System: Cerebral

[Cerebral: Visualizing Multiple Experimental Conditions on a Graph with Biological Context. Barsky, Munzner, Gardy, and Kincaid. IEEE Trans. Visualization and Computer Graphics (Proc. InfoVis 2008) 14:6 (2008), 1253–1260.]

Page 27: Week 4: Manipulate, Facet, Reduce

Coordinate views: Design choice interaction

27

All Subset

Same

Multiform

Multiform, Overview/

Detail

None

Redundant

No Linkage

Small Multiples

Overview/Detail

• why juxtapose views?–benefits: eyes vs memory

• lower cognitive load to move eyes between 2 views than remembering previous state with single changing view

–costs: display area, 2 views side by side each have only half the area of one view

Page 28: Week 4: Manipulate, Facet, Reduce

28

Why not animation?

• disparate frames and regions: comparison difficult–vs contiguous frames–vs small region–vs coherent motion of group

• safe special case–animated transitions

Page 29: Week 4: Manipulate, Facet, Reduce

System: Improvise

29

[Building Highly-Coordinated Visualizations In Improvise. Weaver. Proc. IEEE Symp. Information Visualization (InfoVis), pp. 159–166, 2004.]

• investigate power of multiple views–pushing limits on

view count, interaction complexity

–how many is ok?• open research

question

–reorderable lists• easy lookup

• useful when linked to other encodings

Page 30: Week 4: Manipulate, Facet, Reduce

Partition into views

30

• how to divide data between views–split into regions by attributes–encodes association between items

using spatial proximity –order of splits has major implications

for what patterns are visible

• no strict dividing line–view: big/detailed

• contiguous region in which visually encoded data is shown on the display

–glyph: small/iconic • object with internal structure that arises

from multiple marks

Partition into Side-by-Side Views

Page 31: Week 4: Manipulate, Facet, Reduce

Partitioning: List alignment• single bar chart with grouped bars

–split by state into regions• complex glyph within each region showing all

ages

–compare: easy within state, hard across ages

• small-multiple bar charts–split by age into regions

• one chart per region

–compare: easy within age, harder across states

31

11.0

10.0

9.0

8.0

7.0

6.0

5.0

4.0

3.0

2.0

1.0

0.0 CA TK NY FL IL PA

65 Years and Over45 to 64 Years25 to 44 Years18 to 24 Years14 to 17 Years5 to 13 YearsUnder 5 Years

CA TK NY FL IL PA

0

5

11

0

5

11

0

5

11

0

5

11

0

5

11

0

5

11

0

5

11

Page 32: Week 4: Manipulate, Facet, Reduce

Partitioning: Recursive subdivision

• split by neighborhood• then by type • then time

–years as rows–months as columns

• color by price

• neighborhood patterns–where it’s expensive–where you pay much more

for detached type

32[Configuring Hierarchical Layouts to Address Research Questions. Slingsby, Dykes, and Wood. IEEE Transactions on Visualization and Computer Graphics (Proc. InfoVis 2009) 15:6 (2009), 977–984.]

System: HIVE

Page 33: Week 4: Manipulate, Facet, Reduce

Partitioning: Recursive subdivision

• switch order of splits–type then neighborhood

• switch color–by price variation

• type patterns–within specific type, which

neighborhoods inconsistent

33[Configuring Hierarchical Layouts to Address Research Questions. Slingsby, Dykes, and Wood. IEEE Transactions on Visualization and Computer Graphics (Proc. InfoVis 2009) 15:6 (2009), 977–984.]

System: HIVE

Page 34: Week 4: Manipulate, Facet, Reduce

Partitioning: Recursive subdivision

• different encoding for second-level regions–choropleth maps

34[Configuring Hierarchical Layouts to Address Research Questions. Slingsby, Dykes, and Wood. IEEE Transactions on Visualization and Computer Graphics (Proc. InfoVis 2009) 15:6 (2009), 977–984.]

System: HIVE

Page 35: Week 4: Manipulate, Facet, Reduce

Partitioning: Recursive subdivision

• size regions by sale counts–not uniformly

• result: treemap

35[Configuring Hierarchical Layouts to Address Research Questions. Slingsby, Dykes, and Wood. IEEE Transactions on Visualization and Computer Graphics (Proc. InfoVis 2009) 15:6 (2009), 977–984.]

System: HIVE

Page 36: Week 4: Manipulate, Facet, Reduce

Previous Demos

• Tableau Lessons– partitioning: drag multiple pills into Row or Column– disaggregation: drag field into Detail/Color

• aggregation is automatic and aggressive in Tableau

36

Page 37: Week 4: Manipulate, Facet, Reduce

Superimpose layers

37

• layer: set of objects spread out over region–each set is visually distinguishable group–extent: whole view

• design choices–how many layers, how to distinguish?

• encode with different, nonoverlapping channels• two layers achieveable, three with careful design

–small static set, or dynamic from many possible?

Superimpose Layers

Page 38: Week 4: Manipulate, Facet, Reduce

Static visual layering

• foreground layer: roads–hue, size distinguishing main from minor–high luminance contrast from background

• background layer: regions–desaturated colors for water, parks, land

areas

• user can selectively focus attention• “get it right in black and white”

–check luminance contrast with greyscale view

38

[Get it right in black and white. Stone. 2010. http://www.stonesc.com/wordpress/2010/03/get-it-right-in-black-and-white]

Page 39: Week 4: Manipulate, Facet, Reduce

Superimposing limits

• few layers, but many lines–up to a few dozen–but not hundreds

• superimpose vs juxtapose: empirical study–superimposed for local, multiple for global–tasks

• local: maximum, global: slope, discrimination

–same screen space for all multiples vs single superimposed

39

[Graphical Perception of Multiple Time Series. Javed, McDonnel, and Elmqvist. IEEE Transactions on Visualization and Computer Graphics (Proc. IEEE InfoVis 2010) 16:6 (2010), 927–934.]

CPU utilization over time

100

80

60

40

20

005:00 05:30 06:00 06:30 07:00 07:30 08:00

05:00 05:30 06:00 06:30 07:00 07:30 08:00

100

80

60

40

20

0

05:00 05:30 06:00 06:30 07:00 07:30 08:00

100

80

60

40

20

0

Page 40: Week 4: Manipulate, Facet, Reduce

Dynamic visual layering

• interactive, from selection–lightweight: click–very lightweight: hover

• ex: 1-hop neighbors

40

System: Cerebral

[Cerebral: a Cytoscape plugin for layout of and interaction with biological networks using subcellular localization annotation. Barsky, Gardy, Hancock, and Munzner. Bioinformatics 23:8 (2007), 1040–1042.]

Page 41: Week 4: Manipulate, Facet, Reduce

Reduce items and attributes

41

• reduce/increase: inverses• filter

–pro: straightforward and intuitive• to understand and compute

–con: out of sight, out of mind

• aggregation–pro: inform about whole set–con: difficult to avoid losing signal

• not mutually exclusive–combine filter, aggregate–combine reduce, change, facet

Reduce

Filter

Aggregate

Embed

Reducing Items and Attributes

FilterItems

Attributes

Aggregate

Items

Attributes

Page 42: Week 4: Manipulate, Facet, Reduce

Idiom: dynamic filtering• item filtering• browse through tightly coupled interaction

–alternative to queries that might return far too many or too few

42

System: FilmFinder

[Visual information seeking: Tight coupling of dynamic query filters with starfield displays. Ahlberg and Shneiderman. Proc. ACM Conf. on Human Factors in Computing Systems (CHI), pp. 313–317, 1994.]

Page 43: Week 4: Manipulate, Facet, Reduce

Idiom: DOSFA• attribute filtering• encoding: star glyphs

43

[Interactive Hierarchical Dimension Ordering, Spacing and Filtering for Exploration Of High Dimensional Datasets. Yang, Peng,Ward, and. Rundensteiner. Proc. IEEE Symp. Information Visualization (InfoVis), pp. 105–112, 2003.]

Page 44: Week 4: Manipulate, Facet, Reduce

Idiom: histogram• static item aggregation• task: find distribution• data: table• derived data

–new table: keys are bins, values are counts

• bin size crucial–pattern can change dramatically depending on discretization–opportunity for interaction: control bin size on the fly

44

20

15

10

5

0

Weight Class (lbs)

Page 45: Week 4: Manipulate, Facet, Reduce

Continuous scatterplot

• static item aggregation• data: table• derived data: table

– key attribs x,y for pixels– quant attrib: overplot

density

• dense space-filling 2D matrix

• color: sequential categorical hue + ordered luminance colormap

45[Continuous Scatterplots. Bachthaler and Weiskopf. IEEE TVCG (Proc. Vis 08) 14:6 (2008), 1428–1435. 2008. ]

Page 46: Week 4: Manipulate, Facet, Reduce

Idiom: scented widgets• augment widgets for filtering to show information scent

–cues to show whether value in drilling down further vs looking elsewhere

• concise, in part of screen normally considered control panel

46

[Scented Widgets: Improving Navigation Cues with Embedded Visualizations. Willett, Heer, and Agrawala. IEEE Trans. Visualization and Computer Graphics (Proc. InfoVis 2007) 13:6 (2007), 1129–1136.]

Page 47: Week 4: Manipulate, Facet, Reduce

Idiom: boxplot• static item aggregation• task: find distribution• data: table• derived data

–5 quant attribs• median: central line• lower and upper quartile: boxes• lower upper fences: whiskers

– values beyond which items are outliers

–outliers beyond fence cutoffs explicitly shown

47

pod, and the rug plot looks like the seeds within. Kampstra (2008) also suggests a way of comparing two

groups more easily: use the left and right sides of the bean to display different distributions. A related idea

is the raindrop plot (Barrowman and Myers, 2003), but its focus is on the display of error distributions from

complex models.

Figure 4 demonstrates these density boxplots applied to 100 numbers drawn from each of four distribu-

tions with mean 0 and standard deviation 1: a standard normal, a skew-right distribution (Johnson distri-

bution with skewness 2.2 and kurtosis 13), a leptikurtic distribution (Johnson distribution with skewness 0

and kurtosis 20) and a bimodal distribution (two normals with mean -0.95 and 0.95 and standard devia-

tion 0.31). Richer displays of density make it much easier to see important variations in the distribution:

multi-modality is particularly important, and yet completely invisible with the boxplot.

!

!

!!

!

!

!

!

!

n s k mm

!2

02

4

!

!

!

!!

!

!

!

!

!!

!

!

!

!

!

!

!

!!

!!

!

!

!

!!

!

n s k mm

!2

02

4

n s k mm

!4

!2

02

4

!4

!2

02

4

n s k mm

Figure 4: From left to right: box plot, vase plot, violin plot and bean plot. Within each plot, the distributions from left to

right are: standard normal (n), right-skewed (s), leptikurtic (k), and bimodal (mm). A normal kernel and bandwidth of

0.2 are used in all plots for all groups.

A more sophisticated display is the sectioned density plot (Cohen and Cohen, 2006), which uses both

colour and space to stack a density estimate into a smaller area, hopefully without losing any information

(not formally verified with a perceptual study). The sectioned density plot is similar in spirit to horizon

graphs for time series (Reijner, 2008), which have been found to be just as readable as regular line graphs

despite taking up much less space (Heer et al., 2009). The density strips of Jackson (2008) provide a similar

compact display that uses colour instead of width to display density. These methods are shown in Figure 5.

6

[40 years of boxplots. Wickham and Stryjewski. 2012. had.co.nz]

Page 48: Week 4: Manipulate, Facet, Reduce

Idiom: Hierarchical parallel coordinates• dynamic item aggregation• derived data: hierarchical clustering • encoding:

–cluster band with variable transparency, line at mean, width by min/max values–color by proximity in hierarchy

48[Hierarchical Parallel Coordinates for Exploration of Large Datasets. Fua, Ward, and Rundensteiner. Proc. IEEE Visualization Conference (Vis ’99), pp. 43– 50, 1999.]

Page 49: Week 4: Manipulate, Facet, Reduce

Spatial aggregation

• MAUP: Modifiable Areal Unit Problem–gerrymandering (manipulating voting district boundaries) is one example!

49[http://www.e-education.psu/edu/geog486/l4_p7.html, Fig 4.cg.6]

Page 50: Week 4: Manipulate, Facet, Reduce

Dimensionality reduction

• attribute aggregation–derive low-dimensional target space from high-dimensional measured space –use when you can’t directly measure what you care about

• true dimensionality of dataset conjectured to be smaller than dimensionality of measurements

• latent factors, hidden variables

5046

Tumor Measurement Data DR

Malignant Benign

data: 9D measured space

derived data: 2D target space

Page 51: Week 4: Manipulate, Facet, Reduce

Idiom: Dimensionality reduction for documents

51

Task 1

InHD data

Out2D data

ProduceIn High- dimensional data

Why?What?

Derive

In2D data

Task 2

Out 2D data

How?Why?What?

EncodeNavigateSelect

DiscoverExploreIdentify

In 2D dataOut ScatterplotOut Clusters & points

OutScatterplotClusters & points

Task 3

InScatterplotClusters & points

OutLabels for clusters

Why?What?

ProduceAnnotate

In ScatterplotIn Clusters & pointsOut Labels for clusters

wombat

Page 52: Week 4: Manipulate, Facet, Reduce

Demo 2: Internet Use

• Credit: Ben Jones

• Tableau Lessons– more maps, dual axes– linked views (apply filter to selected worksheets)– actions: highlight/hover

• Big Ideas– Tableau interactivity defaults not necessarily what you want

52

Page 53: Week 4: Manipulate, Facet, Reduce

Demo 3: House Price Index

• Credit: Robert Kosara, from TCC 2014 talk Recreating News Visualizations in Tableau

• Tableau Lessons– more calculated field practice– create parameter– reference lines– interactive sliders

• Big Ideas– calculated fields plus interactivity gives you a lot of power and flexibility

53

Page 54: Week 4: Manipulate, Facet, Reduce

Assignment 4

• finish/review House Price Index workbook• add interactivity to last week’s story

– update workbook– upload to Tableau Public– revise story to include embedded interactive

• final project proposal

54