+ All Categories
Home > Documents > Week 3: Color, Spatial Data - University of British...

Week 3: Color, Spatial Data - University of British...

Date post: 24-Jun-2020
Category:
Upload: others
View: 0 times
Download: 0 times
Share this document with a friend
45
http://www.cs.ubc.ca/~tmm/courses/journ16 Week 3: Color, Spatial Data Tamara Munzner Department of Computer Science University of British Columbia JRNL 520H, Special Topics in Contemporary Journalism: Data Visualization Week 3: 27 September 2016
Transcript
Page 1: Week 3: Color, Spatial Data - University of British Columbiatmm/courses/journ16/slides/journ3.pdf · News • Assign 1 marks sent out by email –max 97, min 73, avg 86 –major sources

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

Week 3: Color, Spatial DataTamara Munzner Department of Computer ScienceUniversity of British Columbia

JRNL 520H, Special Topics in Contemporary Journalism: Data VisualizationWeek 3: 27 September 2016

Page 2: Week 3: Color, Spatial Data - University of British Columbiatmm/courses/journ16/slides/journ3.pdf · News • Assign 1 marks sent out by email –max 97, min 73, avg 86 –major sources

Whereabouts

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

• Tamara on travel Thu Sep 30 - Mon Oct 3–at Stanford Fri/Sat to give keynote at the Computation & Journalism symposium

http://journalism.stanford.edu/cj2016/–will still be answering email–no office hours in Sing Tao this week

• by appointment with Tamara in ICICS/CS bldg Room X661– email [email protected] to arrange (late afternoon today or Wed are only possible times)

• 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 3: Color, Spatial Data - University of British Columbiatmm/courses/journ16/slides/journ3.pdf · News • Assign 1 marks sent out by email –max 97, min 73, avg 86 –major sources

News

• Assign 1 marks sent out by email– max 97, min 73, avg 86– major sources of analysis problems:

• absolute vs relative data: February has fewer days• missing data: final month (Aug) was incomplete

• Assign 2 updated Sat Sep 24– email went out in three rounds - did everybody receive it?– thanks to Curtis and Emi for reporting bug to us!

• 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 3: Color, Spatial Data - University of British Columbiatmm/courses/journ16/slides/journ3.pdf · News • Assign 1 marks sent out by email –max 97, min 73, avg 86 –major sources

Last Time

4

Page 5: Week 3: Color, Spatial Data - University of British Columbiatmm/courses/journ16/slides/journ3.pdf · News • Assign 1 marks sent out by email –max 97, min 73, avg 86 –major sources

5

Encode

ArrangeExpress Separate

Order Align

Arrange space: Visual encoding for tables

Page 6: Week 3: Color, Spatial Data - University of British Columbiatmm/courses/journ16/slides/journ3.pdf · News • Assign 1 marks sent out by email –max 97, min 73, avg 86 –major sources

Demo 1: Back to the Future

• Tableau Lessons– simple analytics: totals– more disaggregation practice– Show Me

• Big Ideas– beyond simple bars– challenges of missing data

6

Page 7: Week 3: Color, Spatial Data - University of British Columbiatmm/courses/journ16/slides/journ3.pdf · News • Assign 1 marks sent out by email –max 97, min 73, avg 86 –major sources

Demo 2: Arrests Premiere League

• Tableau Lessons– visual encoding practice– more filters practice– dual axes

• Big Ideas– outlier removal for subsequent data analysis

• Life Lessons– don’t be a jerk at sporting events!

7

Page 8: Week 3: Color, Spatial Data - University of British Columbiatmm/courses/journ16/slides/journ3.pdf · News • Assign 1 marks sent out by email –max 97, min 73, avg 86 –major sources

Demo 3: Market Share

• work through this on your own if you want practice!– we didn’t have time to do together in class– straw poll: how many of you did this already?

• Tableau Lessons– more practice with changing visual encodings– highlighting individual items

• Big Ideas– different patterns result in different insights

8

Page 9: Week 3: Color, Spatial Data - University of British Columbiatmm/courses/journ16/slides/journ3.pdf · News • Assign 1 marks sent out by email –max 97, min 73, avg 86 –major sources

Color

9

Page 10: Week 3: Color, Spatial Data - University of British Columbiatmm/courses/journ16/slides/journ3.pdf · News • Assign 1 marks sent out by email –max 97, min 73, avg 86 –major sources

Idiom design choices: Encode

10

Why?

How?

What?

Encode

ArrangeExpress Separate

Order Align

Use

Map

Color

Motion

Size, Angle, Curvature, ...

Hue Saturation Luminance

Shape

Direction, Rate, Frequency, ...

from categorical and ordered attributes

Page 11: Week 3: Color, Spatial Data - University of British Columbiatmm/courses/journ16/slides/journ3.pdf · News • Assign 1 marks sent out by email –max 97, min 73, avg 86 –major sources

Categorical vs ordered color

11

[Seriously Colorful: Advanced Color Principles & Practices. Stone.Tableau Customer Conference 2014.]

Page 12: Week 3: Color, Spatial Data - University of British Columbiatmm/courses/journ16/slides/journ3.pdf · News • Assign 1 marks sent out by email –max 97, min 73, avg 86 –major sources

Color: Luminance, saturation, hue

• 3 channels–identity for categorical

• hue

–magnitude for ordered• luminance• saturation

• RGB: poor for encoding• HSL: better, but beware

–lightness ≠ luminance

12

Saturation

Luminance values

Hue

Corners of the RGB color cube

L from HLSAll the same

Luminance values

Page 13: Week 3: Color, Spatial Data - University of British Columbiatmm/courses/journ16/slides/journ3.pdf · News • Assign 1 marks sent out by email –max 97, min 73, avg 86 –major sources

Spectral sensitivity

13

Wavelength (nm)

IRUV

Visible Spectrum

Small but important separation

& three cone types

Page 14: Week 3: Color, Spatial Data - University of British Columbiatmm/courses/journ16/slides/journ3.pdf · News • Assign 1 marks sent out by email –max 97, min 73, avg 86 –major sources

Opponent color and color deficiency

• 3 cones processed before optic nerve– one achromatic luminance channel L

–edge detection through luminance contrast– two chroma channels, R-G and Y-B axis

• “color blind” if one axis has degraded acuity– 8% of men are red/green color deficient– blue/yellow is rare

14

Lightness information Color information

[Seriously Colorful: Advanced Color Principles & Practices. Stone.Tableau Customer Conference 2014.]

Page 15: Week 3: Color, Spatial Data - University of British Columbiatmm/courses/journ16/slides/journ3.pdf · News • Assign 1 marks sent out by email –max 97, min 73, avg 86 –major sources

Designing for color deficiency: Check with simulator

15

Deuteranope Protanope TritanopeNormal vision

[Seriously Colorful: Advanced Color Principles & Practices. Stone.Tableau Customer Conference 2014.]

http://rehue.net

Page 16: Week 3: Color, Spatial Data - University of British Columbiatmm/courses/journ16/slides/journ3.pdf · News • Assign 1 marks sent out by email –max 97, min 73, avg 86 –major sources

Designing for color deficiency: Avoid encoding by hue alone

• redundantly encode– vary luminance– change shape

16

Change the shape

Vary luminance

Deuteranope simulation

[Seriously Colorful: Advanced Color Principles & Practices. Stone.Tableau Customer Conference 2014.]

Page 17: Week 3: Color, Spatial Data - University of British Columbiatmm/courses/journ16/slides/journ3.pdf · News • Assign 1 marks sent out by email –max 97, min 73, avg 86 –major sources

Color deficiency: Reduces color to 2 dimensions

17

Normal

Deuteranope Tritanope

Protanope

[Seriously Colorful: Advanced Color Principles & Practices. Stone.Tableau Customer Conference 2014.]

Page 18: Week 3: Color, Spatial Data - University of British Columbiatmm/courses/journ16/slides/journ3.pdf · News • Assign 1 marks sent out by email –max 97, min 73, avg 86 –major sources

Designing for color deficiency: Blue-Orange is safe

18[Seriously Colorful: Advanced Color Principles & Practices. Stone.Tableau Customer Conference 2014.]

Page 19: Week 3: Color, Spatial Data - University of British Columbiatmm/courses/journ16/slides/journ3.pdf · News • Assign 1 marks sent out by email –max 97, min 73, avg 86 –major sources

Color/Lightness constancy: Illumination conditions

19

Image courtesy of John McCann

Page 20: Week 3: Color, Spatial Data - University of British Columbiatmm/courses/journ16/slides/journ3.pdf · News • Assign 1 marks sent out by email –max 97, min 73, avg 86 –major sources

Color/Lightness constancy: Illumination conditions

20

Image courtesy of John McCann

Page 21: Week 3: Color, Spatial Data - University of British Columbiatmm/courses/journ16/slides/journ3.pdf · News • Assign 1 marks sent out by email –max 97, min 73, avg 86 –major sources

Bezold Effect: Outlines matter

• color constancy: simultaneous contrast effect

21[Seriously Colorful: Advanced Color Principles & Practices. Stone.Tableau Customer Conference 2014.]

Page 22: Week 3: Color, Spatial Data - University of British Columbiatmm/courses/journ16/slides/journ3.pdf · News • Assign 1 marks sent out by email –max 97, min 73, avg 86 –major sources

Colormaps

22

after [Color Use Guidelines for Mapping and Visualization. Brewer, 1994. http://www.personal.psu.edu/faculty/c/a/cab38/ColorSch/Schemes.html]

Categorical

OrderedSequential

Bivariate

Diverging

Binary

Diverging

Categorical

Sequential

Categorical

Categorical

Page 23: Week 3: Color, Spatial Data - University of British Columbiatmm/courses/journ16/slides/journ3.pdf · News • Assign 1 marks sent out by email –max 97, min 73, avg 86 –major sources

Colormaps

23

after [Color Use Guidelines for Mapping and Visualization. Brewer, 1994. http://www.personal.psu.edu/faculty/c/a/cab38/ColorSch/Schemes.html]

Categorical

OrderedSequential

Bivariate

Diverging

Binary

Diverging

Categorical

Sequential

Categorical

Categorical

Page 24: Week 3: Color, Spatial Data - University of British Columbiatmm/courses/journ16/slides/journ3.pdf · News • Assign 1 marks sent out by email –max 97, min 73, avg 86 –major sources

Colormaps

24

after [Color Use Guidelines for Mapping and Visualization. Brewer, 1994. http://www.personal.psu.edu/faculty/c/a/cab38/ColorSch/Schemes.html]

Categorical

OrderedSequential

Bivariate

Diverging

Binary

Diverging

Categorical

Sequential

Categorical

Categorical

use with care!

Page 25: Week 3: Color, Spatial Data - University of British Columbiatmm/courses/journ16/slides/journ3.pdf · News • Assign 1 marks sent out by email –max 97, min 73, avg 86 –major sources

Colormaps

25

• color channel interactions–size heavily affects salience

• small regions need high saturation• large need low saturation

–saturation & luminance: 3-4 bins max• also not separable from transparency

after [Color Use Guidelines for Mapping and Visualization. Brewer, 1994. http://www.personal.psu.edu/faculty/c/a/cab38/ColorSch/Schemes.html]

Categorical

OrderedSequential

Bivariate

Diverging

Binary

Diverging

Categorical

Sequential

Categorical

Categorical

Page 26: Week 3: Color, Spatial Data - University of British Columbiatmm/courses/journ16/slides/journ3.pdf · News • Assign 1 marks sent out by email –max 97, min 73, avg 86 –major sources

ColorBrewer

• http://www.colorbrewer2.org• saturation and area example: size affects salience!

26

Page 27: Week 3: Color, Spatial Data - University of British Columbiatmm/courses/journ16/slides/journ3.pdf · News • Assign 1 marks sent out by email –max 97, min 73, avg 86 –major sources

Categorical color: Discriminability constraints

• noncontiguous small regions of color: only 6-12 bins

27

[Cinteny: flexible analysis and visualization of synteny and genome rearrangements in multiple organisms. Sinha and Meller. BMC Bioinformatics, 8:82, 2007.]

Page 28: Week 3: Color, Spatial Data - University of British Columbiatmm/courses/journ16/slides/journ3.pdf · News • Assign 1 marks sent out by email –max 97, min 73, avg 86 –major sources

Ordered color: Rainbow is poor default• problems

–perceptually unordered–perceptually nonlinear

• benefits–fine-grained structure visible

and nameable

28[Transfer Functions in Direct Volume Rendering: Design, Interface, Interaction. Kindlmann. SIGGRAPH 2002 Course Notes]

[A Rule-based Tool for Assisting Colormap Selection. Bergman,. Rogowitz, and. Treinish. Proc. IEEE Visualization (Vis), pp. 118–125, 1995.]

[Why Should Engineers Be Worried About Color? Treinish and Rogowitz 1998. http://www.research.ibm.com/people/l/lloydt/color/color.HTM]

Page 29: Week 3: Color, Spatial Data - University of British Columbiatmm/courses/journ16/slides/journ3.pdf · News • Assign 1 marks sent out by email –max 97, min 73, avg 86 –major sources

Ordered color: Rainbow is poor default• problems

–perceptually unordered–perceptually nonlinear

• benefits–fine-grained structure visible

and nameable

• alternatives– large-scale structure: fewer

hues

29[Transfer Functions in Direct Volume Rendering: Design, Interface, Interaction. Kindlmann. SIGGRAPH 2002 Course Notes]

[A Rule-based Tool for Assisting Colormap Selection. Bergman,. Rogowitz, and. Treinish. Proc. IEEE Visualization (Vis), pp. 118–125, 1995.]

[Why Should Engineers Be Worried About Color? Treinish and Rogowitz 1998. http://www.research.ibm.com/people/l/lloydt/color/color.HTM]

Page 30: Week 3: Color, Spatial Data - University of British Columbiatmm/courses/journ16/slides/journ3.pdf · News • Assign 1 marks sent out by email –max 97, min 73, avg 86 –major sources

Ordered color: Rainbow is poor default• problems

–perceptually unordered–perceptually nonlinear

• benefits–fine-grained structure visible

and nameable

• alternatives– large-scale structure: fewer

hues–fine structure: multiple hues

with monotonically increasing luminance [eg viridis R/python]

30[Transfer Functions in Direct Volume Rendering: Design, Interface, Interaction. Kindlmann. SIGGRAPH 2002 Course Notes]

[A Rule-based Tool for Assisting Colormap Selection. Bergman,. Rogowitz, and. Treinish. Proc. IEEE Visualization (Vis), pp. 118–125, 1995.]

[Why Should Engineers Be Worried About Color? Treinish and Rogowitz 1998. http://www.research.ibm.com/people/l/lloydt/color/color.HTM]

Page 31: Week 3: Color, Spatial Data - University of British Columbiatmm/courses/journ16/slides/journ3.pdf · News • Assign 1 marks sent out by email –max 97, min 73, avg 86 –major sources

Viridis• colorful, perceptually uniform,

colorblind-safe, monotonically increasing luminance

31

https://cran.r-project.org/web/packages/viridis/vignettes/intro-to-viridis.html

Page 32: Week 3: Color, Spatial Data - University of British Columbiatmm/courses/journ16/slides/journ3.pdf · News • Assign 1 marks sent out by email –max 97, min 73, avg 86 –major sources

Ordered color: Rainbow is poor default• problems

–perceptually unordered–perceptually nonlinear

• benefits–fine-grained structure visible and

nameable

• alternatives– large-scale structure: fewer hues–fine structure: multiple hues with

monotonically increasing luminance [eg viridis R/python]

–segmented rainbows for binned or categorical

32[Transfer Functions in Direct Volume Rendering: Design, Interface, Interaction. Kindlmann. SIGGRAPH 2002 Course Notes]

[A Rule-based Tool for Assisting Colormap Selection. Bergman,. Rogowitz, and. Treinish. Proc. IEEE Visualization (Vis), pp. 118–125, 1995.]

[Why Should Engineers Be Worried About Color? Treinish and Rogowitz 1998. http://www.research.ibm.com/people/l/lloydt/color/color.HTM]

Page 33: Week 3: Color, Spatial Data - University of British Columbiatmm/courses/journ16/slides/journ3.pdf · News • Assign 1 marks sent out by email –max 97, min 73, avg 86 –major sources

33

Map other channels

• size–length accurate, 2D area ok, 3D volume poor

• angle–nonlinear accuracy

• horizontal, vertical, exact diagonal

• shape–complex combination of lower-level primitives–many bins

• motion–highly separable against static

• binary: great for highlighting

–use with care to avoid irritationMotionDirection, Rate, Frequency, ...

Length

Angle

Curvature

Area

Volume

Size, Angle, Curvature, ...

Shape

Motion

Page 34: Week 3: Color, Spatial Data - University of British Columbiatmm/courses/journ16/slides/journ3.pdf · News • Assign 1 marks sent out by email –max 97, min 73, avg 86 –major sources

Angle

34

Sequential ordered line mark or arrow glyph

Diverging ordered arrow glyph

Cyclic ordered arrow glyph

Page 35: Week 3: Color, Spatial Data - University of British Columbiatmm/courses/journ16/slides/journ3.pdf · News • Assign 1 marks sent out by email –max 97, min 73, avg 86 –major sources

Further reading• Visualization Analysis and Design. Munzner. AK Peters Visualization Series, CRC Press,

2014–Chap 10: Map Color and Other Channels

• ColorBrewer, Brewer.–http://www.colorbrewer2.org

• Color In Information Display. Stone. IEEE Vis Course Notes, 2006. –http://www.stonesc.com/Vis06

• A Field Guide to Digital Color. Stone. AK Peters, 2003.• Rainbow Color Map (Still) Considered Harmful. Borland and Taylor. IEEE Computer Graphics

and Applications 27:2 (2007), 14–17.• Visual Thinking for Design. Ware. Morgan Kaufmann, 2008.• Information Visualization: Perception for Design, 3rd edition. Ware. Morgan Kaufmann /

Academic Press, 2004.• https://cran.r-project.org/web/packages/viridis/vignettes/intro-to-viridis.html

35

Page 36: Week 3: Color, Spatial Data - University of British Columbiatmm/courses/journ16/slides/journ3.pdf · News • Assign 1 marks sent out by email –max 97, min 73, avg 86 –major sources

Maureen Stone

• Tableau Research–designer of Tableau color defaults–also author of A Field Guide to Digital Color

–credits: following color slides excerpted from Seriously Colorful: Advanced Color Principles & Practices• Tableau Customer Conference 2014 talk

36

Page 37: Week 3: Color, Spatial Data - University of British Columbiatmm/courses/journ16/slides/journ3.pdf · News • Assign 1 marks sent out by email –max 97, min 73, avg 86 –major sources

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

37

Page 38: Week 3: Color, Spatial Data - University of British Columbiatmm/courses/journ16/slides/journ3.pdf · News • Assign 1 marks sent out by email –max 97, min 73, avg 86 –major sources

Spatial Data

38

Page 39: Week 3: Color, Spatial Data - University of British Columbiatmm/courses/journ16/slides/journ3.pdf · News • Assign 1 marks sent out by email –max 97, min 73, avg 86 –major sources

39

VAD Chap 8: Arrange spatial dataUse Given

GeometryGeographicOther Derived

Spatial FieldsScalar Fields (one value per cell)

Isocontours

Direct Volume Rendering

Vector and Tensor Fields (many values per cell)

Flow Glyphs (local)

Geometric (sparse seeds)

Textures (dense seeds)

Features (globally derived)

Page 40: Week 3: Color, Spatial Data - University of British Columbiatmm/courses/journ16/slides/journ3.pdf · News • Assign 1 marks sent out by email –max 97, min 73, avg 86 –major sources

Idiom: choropleth map• use given spatial data

– when central task is understanding spatial relationships

• data– geographic geometry– table with 1 quant attribute per region

• encoding– use given geometry for area mark boundaries– sequential segmented colormap

• trickiness– small regions are less visually salient

40

http://bl.ocks.org/mbostock/4060606

Page 41: Week 3: Color, Spatial Data - University of British Columbiatmm/courses/journ16/slides/journ3.pdf · News • Assign 1 marks sent out by email –max 97, min 73, avg 86 –major sources

Population maps trickiness

• beware!• absolute vs relative again

• population density vs per capita• investigate with Ben Jones Tableau

Public demo• http://public.tableau.com/profile/

ben.jones#!/vizhome/PopVsFin/PopVsFinAre Maps of Financial Variables just Population Maps?

• yes, unless you look at per capita (relative) numbers

41

[ https://xkcd.com/1138 ]

Page 42: Week 3: Color, Spatial Data - University of British Columbiatmm/courses/journ16/slides/journ3.pdf · News • Assign 1 marks sent out by email –max 97, min 73, avg 86 –major sources

Idiom: topographic map• data

–geographic geometry–scalar spatial field

• 1 quant attribute per grid cell

• derived data–isoline geometry

• isocontours computed for specific levels of scalar values

42

Land Information New Zealand Data Service

Page 43: Week 3: Color, Spatial Data - University of British Columbiatmm/courses/journ16/slides/journ3.pdf · News • Assign 1 marks sent out by email –max 97, min 73, avg 86 –major sources

Idiom: isosurfaces• data

–scalar spatial field• 1 quant attribute per grid cell

• derived data–isosurface geometry

• isocontours computed for specific levels of scalar values

• task–spatial relationships

43

[Interactive Volume Rendering Techniques. Kniss. Master’s thesis, University of Utah Computer Science, 2002.]

Page 44: Week 3: Color, Spatial Data - University of British Columbiatmm/courses/journ16/slides/journ3.pdf · News • Assign 1 marks sent out by email –max 97, min 73, avg 86 –major sources

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

44

Page 45: Week 3: Color, Spatial Data - University of British Columbiatmm/courses/journ16/slides/journ3.pdf · News • Assign 1 marks sent out by email –max 97, min 73, avg 86 –major sources

Assignment 3: Start in

• Drought and Deluge

• choose dataset to analyze and write about

45


Recommended