graphs and charts - wordpress.com€¦ · • learn about different statistical data graphs/charts...

47
INFOVIS 8803DV > SPRING 18 (STATISTICAL) GRAPHS & CHARTS Prof. Rahul C. Basole CS/MGT 8803-DV > January 24, 2018

Upload: others

Post on 12-Oct-2020

0 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Graphs and Charts - WordPress.com€¦ · • Learn about different statistical data graphs/charts • Develop skill at choosing graph(s) to display different types of data and data

INFOVIS8803DV > SPRING 18

(STATISTICAL) GRAPHS & CHARTS

Prof. Rahul C. Basole

CS/MGT 8803-DV > January 24, 2018

Page 2: Graphs and Charts - WordPress.com€¦ · • Learn about different statistical data graphs/charts • Develop skill at choosing graph(s) to display different types of data and data

INFOVIS8803DV > SPRING 18

HW1: DataVis Examples

Page 3: Graphs and Charts - WordPress.com€¦ · • Learn about different statistical data graphs/charts • Develop skill at choosing graph(s) to display different types of data and data

INFOVIS8803DV > SPRING 18

HW1: DataVis Examples

• Uber and Lyft in SF

– http://tncstoday.sfcta.org/

• Triple Play

– https://public.tableau.com/views/TriplePlayArt/Art?:embed=y&:display_count=no

&:showVizHome=no

• Medal Count

– http://www.nytimes.com/interactive/2008/08/04/sports/olympics/20080804_MED

ALCOUNT_MAP.html

• Corporate Pipeline by Gender

– https://www.scoopnest.com/user/ValaAfshar/650670269342875648

Page 4: Graphs and Charts - WordPress.com€¦ · • Learn about different statistical data graphs/charts • Develop skill at choosing graph(s) to display different types of data and data

INFOVIS8803DV > SPRING 18

Tumblr

• 48 students* = 48 vis-of-the-day submissions

• We will use a random order

• We will start next week

• Schedule will be on Canvas

Page 5: Graphs and Charts - WordPress.com€¦ · • Learn about different statistical data graphs/charts • Develop skill at choosing graph(s) to display different types of data and data

INFOVIS8803DV > SPRING 18

Project Pitch

Page 6: Graphs and Charts - WordPress.com€¦ · • Learn about different statistical data graphs/charts • Develop skill at choosing graph(s) to display different types of data and data

INFOVIS8803DV > SPRING 18

Today’s Agenda

• Learn about different statistical data graphs/charts

• Develop skill at choosing graph(s) to display different types of data

and data sets

• Learn approaches to address overplotting

• Understand concept of “banking to 45 degree”

Page 7: Graphs and Charts - WordPress.com€¦ · • Learn about different statistical data graphs/charts • Develop skill at choosing graph(s) to display different types of data and data

INFOVIS8803DV > SPRING 18

Page 8: Graphs and Charts - WordPress.com€¦ · • Learn about different statistical data graphs/charts • Develop skill at choosing graph(s) to display different types of data and data

INFOVIS8803DV > SPRING 18

Scenario

[email protected]

[email protected]

URGENT: Need summary of performance reviews

I’ve interviewed three people for the new Customer Service Manager position and need to

summarize their qualifications for Jeff [the big boss]. He wants to choose the best candidate as

objectively as possible. After the colossal failure of my last hire, he no longer trusts my instincts.

I’ve attached a spreadsheet that rates each of the candidates according to the six areas of

competence that we use for performance reviews (experience, communication, etc.). Please

create a report that I can pass on to Jeff that presents my findings.

I’ll need it on my desk first thing tomorrow

Thanks,

Sue

performancereviews.xls

Page 9: Graphs and Charts - WordPress.com€¦ · • Learn about different statistical data graphs/charts • Develop skill at choosing graph(s) to display different types of data and data

INFOVIS8803DV > SPRING 18

Scenario

Page 10: Graphs and Charts - WordPress.com€¦ · • Learn about different statistical data graphs/charts • Develop skill at choosing graph(s) to display different types of data and data

INFOVIS8803DV > SPRING 18

Scenario

Page 11: Graphs and Charts - WordPress.com€¦ · • Learn about different statistical data graphs/charts • Develop skill at choosing graph(s) to display different types of data and data

INFOVIS8803DV > SPRING 18

Communicating Quantitative Data: A Design Process

There are six fundamental steps you should consider

1. Determine your message and identify your data

2. Determine if a table, or graph, or both is needed to communicate your message

The remaining steps apply only if one or more graphs are required

3. Determine the best means to encode the values

4. Determine where to display each variable

5. Determine the best design for the remaining objects

– Determine the range of the quantitative scale

– If a legend is required, determine where to place it

– Determine if tick marks are required and how many

– Determine the best location for the quantitative scale

– Determine if grid lines are required

– Determine what descriptive text is needed

6. Determine if particular data should be featured above the rest, and if so, how

Stephen Few “Effectively Communicating Numbers”

http://www.perceptualedge.com/articles/Whitepapers/Communicating_Numbers.pdf

Page 12: Graphs and Charts - WordPress.com€¦ · • Learn about different statistical data graphs/charts • Develop skill at choosing graph(s) to display different types of data and data

INFOVIS8803DV > SPRING 18

Some General Concepts

Table vs. Graph

Page 13: Graphs and Charts - WordPress.com€¦ · • Learn about different statistical data graphs/charts • Develop skill at choosing graph(s) to display different types of data and data

INFOVIS8803DV > SPRING 18

Some General Concepts

Recall: There are Different Data Types

Page 14: Graphs and Charts - WordPress.com€¦ · • Learn about different statistical data graphs/charts • Develop skill at choosing graph(s) to display different types of data and data

INFOVIS8803DV > SPRING 18

Some General Concepts

Common Relationships in Quantitative Data

CorrelationDistributionDeviation

Part-to-WholeRankingTime-Series

Page 15: Graphs and Charts - WordPress.com€¦ · • Learn about different statistical data graphs/charts • Develop skill at choosing graph(s) to display different types of data and data

INFOVIS8803DV > SPRING 18

Four types of objects work best for encoding quantitative values in graphs:

Points, Lines, Bars, Boxes

Page 16: Graphs and Charts - WordPress.com€¦ · • Learn about different statistical data graphs/charts • Develop skill at choosing graph(s) to display different types of data and data

INFOVIS8803DV > SPRING 18

Four types of objects work best for encoding quantitative values in graphs:

Points, Lines, Bars, Boxes

Page 17: Graphs and Charts - WordPress.com€¦ · • Learn about different statistical data graphs/charts • Develop skill at choosing graph(s) to display different types of data and data

INFOVIS8803DV > SPRING 18

Scatterplot for Correlation Analysis

Page 18: Graphs and Charts - WordPress.com€¦ · • Learn about different statistical data graphs/charts • Develop skill at choosing graph(s) to display different types of data and data

INFOVIS8803DV > SPRING 18

Scatterplot Matrix (“Crosstab”)

Page 19: Graphs and Charts - WordPress.com€¦ · • Learn about different statistical data graphs/charts • Develop skill at choosing graph(s) to display different types of data and data

INFOVIS8803DV > SPRING 18

Four types of objects work best for encoding quantitative values in graphs:

Points, Lines, Bars, Boxes

Page 20: Graphs and Charts - WordPress.com€¦ · • Learn about different statistical data graphs/charts • Develop skill at choosing graph(s) to display different types of data and data

INFOVIS8803DV > SPRING 18

Line Graphs

When to use:

When quantitative values change during a continuous period of time

more on this in our Temporal & Sequential Data lecture

Page 21: Graphs and Charts - WordPress.com€¦ · • Learn about different statistical data graphs/charts • Develop skill at choosing graph(s) to display different types of data and data

INFOVIS8803DV > SPRING 18

Line Graphs

Add Reference Lines

Page 22: Graphs and Charts - WordPress.com€¦ · • Learn about different statistical data graphs/charts • Develop skill at choosing graph(s) to display different types of data and data

INFOVIS8803DV > SPRING 18

Crosstab

Page 23: Graphs and Charts - WordPress.com€¦ · • Learn about different statistical data graphs/charts • Develop skill at choosing graph(s) to display different types of data and data

INFOVIS8803DV > SPRING 18

Which is increasing at a faster rate,

hardware sales or software sales?

Both at same rate, 10%

Log scale shows this

Page 24: Graphs and Charts - WordPress.com€¦ · • Learn about different statistical data graphs/charts • Develop skill at choosing graph(s) to display different types of data and data

INFOVIS8803DV > SPRING 18

Same chart, just drawn at

different aspect ratios.

Page 25: Graphs and Charts - WordPress.com€¦ · • Learn about different statistical data graphs/charts • Develop skill at choosing graph(s) to display different types of data and data

INFOVIS8803DV > SPRING 18

People interpret the diagrams

better when lines are around

45°, not too flat, not too steep

“Banking to 45°”

Page 26: Graphs and Charts - WordPress.com€¦ · • Learn about different statistical data graphs/charts • Develop skill at choosing graph(s) to display different types of data and data

INFOVIS8803DV > SPRING 18

Patterns

Daily sales Average per day

p. 176

Page 27: Graphs and Charts - WordPress.com€¦ · • Learn about different statistical data graphs/charts • Develop skill at choosing graph(s) to display different types of data and data

INFOVIS8803DV > SPRING 18

Four types of objects work best for encoding quantitative values in graphs:

Points, Lines, Bars, Boxes

Page 28: Graphs and Charts - WordPress.com€¦ · • Learn about different statistical data graphs/charts • Develop skill at choosing graph(s) to display different types of data and data

INFOVIS8803DV > SPRING 18

When to use:

When you want to support the comparison of individual values

Bar Charts

Page 29: Graphs and Charts - WordPress.com€¦ · • Learn about different statistical data graphs/charts • Develop skill at choosing graph(s) to display different types of data and data

INFOVIS8803DV > SPRING 18

Bar Charts

Vertical vs. Horizontal Bars

Page 30: Graphs and Charts - WordPress.com€¦ · • Learn about different statistical data graphs/charts • Develop skill at choosing graph(s) to display different types of data and data

INFOVIS8803DV > SPRING 18

Bar Charts

Reference Lines

Page 31: Graphs and Charts - WordPress.com€¦ · • Learn about different statistical data graphs/charts • Develop skill at choosing graph(s) to display different types of data and data

INFOVIS8803DV > SPRING 18

Four types of objects work best for encoding quantitative values in graphs:

Points, Lines, Bars, Boxes

Page 32: Graphs and Charts - WordPress.com€¦ · • Learn about different statistical data graphs/charts • Develop skill at choosing graph(s) to display different types of data and data

INFOVIS8803DV > SPRING 18

Boxplots

Page 33: Graphs and Charts - WordPress.com€¦ · • Learn about different statistical data graphs/charts • Develop skill at choosing graph(s) to display different types of data and data

INFOVIS8803DV > SPRING 18

Many other charts

Goal: Maximize Task-Data-Visualization Fit

Time-Series Analysis

Page 34: Graphs and Charts - WordPress.com€¦ · • Learn about different statistical data graphs/charts • Develop skill at choosing graph(s) to display different types of data and data

INFOVIS8803DV > SPRING 18

Many other charts

Goal: Maximize Task-Data-Visualization Fit

Distribution Analysis

Strip Plot

HistogramFrequency Plot

Stem-and-Leaf Plot

Page 35: Graphs and Charts - WordPress.com€¦ · • Learn about different statistical data graphs/charts • Develop skill at choosing graph(s) to display different types of data and data

INFOVIS8803DV > SPRING 18

Communicating Quantitative Data: A Design Process

Determine the best means to encode the values

Page 36: Graphs and Charts - WordPress.com€¦ · • Learn about different statistical data graphs/charts • Develop skill at choosing graph(s) to display different types of data and data

INFOVIS8803DV > SPRING 18

Page 37: Graphs and Charts - WordPress.com€¦ · • Learn about different statistical data graphs/charts • Develop skill at choosing graph(s) to display different types of data and data

INFOVIS8803DV > SPRING 18

Communicating Quantitative Data: A Design Process

Determine where to display each variable

Page 38: Graphs and Charts - WordPress.com€¦ · • Learn about different statistical data graphs/charts • Develop skill at choosing graph(s) to display different types of data and data

INFOVIS8803DV > SPRING 18

Communicating Quantitative Data: A Design Process

Determine the best design for the remaining objects

Determine the Range for the Quantitative Scale

Page 39: Graphs and Charts - WordPress.com€¦ · • Learn about different statistical data graphs/charts • Develop skill at choosing graph(s) to display different types of data and data

INFOVIS8803DV > SPRING 18

Communicating Quantitative Data: A Design Process

Determine the best design for the remaining objects

If a Legend Is Required, Determine Where to Place It

Page 40: Graphs and Charts - WordPress.com€¦ · • Learn about different statistical data graphs/charts • Develop skill at choosing graph(s) to display different types of data and data

INFOVIS8803DV > SPRING 18

Communicating Quantitative Data: A Design Process

Determine the best design for the remaining objects

Determine If Grid Lines Are Required

Page 41: Graphs and Charts - WordPress.com€¦ · • Learn about different statistical data graphs/charts • Develop skill at choosing graph(s) to display different types of data and data

INFOVIS8803DV > SPRING 18

Too many data points.

Chart suffers from

data occlusion.

What are possible

techniques to

overcome ?

Communicating Quantitative Data: A Design Process

Determine the best design for the remaining objects

Overplotting

Page 42: Graphs and Charts - WordPress.com€¦ · • Learn about different statistical data graphs/charts • Develop skill at choosing graph(s) to display different types of data and data

INFOVIS8803DV > SPRING 18

Overplotting Solutions

• Reducing the number of values

– Aggregating the data

– Filtering the data

– Breaking the data into a series of separate graphs

– Statistically sampling the data

• Reducing size of data objects

• Removing all fill color from data objects

• Changing the shape of data objects

• Jittering data objects*

Page 43: Graphs and Charts - WordPress.com€¦ · • Learn about different statistical data graphs/charts • Develop skill at choosing graph(s) to display different types of data and data

INFOVIS8803DV > SPRING 18

Communicating Quantitative Data: A Design Process

Determine if particular data should be featured above the rest, and if so, how

Page 44: Graphs and Charts - WordPress.com€¦ · • Learn about different statistical data graphs/charts • Develop skill at choosing graph(s) to display different types of data and data

INFOVIS8803DV > SPRING 18

Real-World Dashboards

Multiple Concurrent Views

Page 45: Graphs and Charts - WordPress.com€¦ · • Learn about different statistical data graphs/charts • Develop skill at choosing graph(s) to display different types of data and data

INFOVIS8803DV > SPRING 18

Ok, let me get some feedback …

Page 46: Graphs and Charts - WordPress.com€¦ · • Learn about different statistical data graphs/charts • Develop skill at choosing graph(s) to display different types of data and data

INFOVIS8803DV > SPRING 18

What’s your Graph Design IQ?

• Let’s take a test.

• http://www.perceptualedge.com/files/GraphDesignIQ.html

Page 47: Graphs and Charts - WordPress.com€¦ · • Learn about different statistical data graphs/charts • Develop skill at choosing graph(s) to display different types of data and data

INFOVIS8803DV > SPRING 18

Reminder: Tableau Lab Tutorial

• Download and install Tableau

– Use the activation code posted on Canvas

• Download sample data file*

• Bring your laptop to class (hands-on tutorial)