data 101: introduction to data visualization

85
Data Visualization Data 101 May 10th, 2016 Data 101. David Newbury — @workergnome 1

Upload: david-newbury

Post on 15-Apr-2017

447 views

Category:

Data & Analytics


2 download

TRANSCRIPT

Page 1: Data 101:  Introduction to Data Visualization

Data VisualizationData 101May 10th, 2016

Data 101. David Newbury — @workergnome 1

Page 2: Data 101:  Introduction to Data Visualization

David NewburyProfessional nerd artist

@workergnomewww.workergnome.com

Data 101. David Newbury — @workergnome 2

Page 3: Data 101:  Introduction to Data Visualization

What We're Doing Today:

—(Brief) History of Data Visualization—(Tiny) Theory of Visualization—(Nerdy) Overview of Concepts—(Fake) Data Exploration—(Incomplete) Overview of Tools

Data 101. David Newbury — @workergnome 3

Page 4: Data 101:  Introduction to Data Visualization

What We're not Doing Today:

—Writing Code—Thinking about Mapping—Worrying about Data Provenance

Data 101. David Newbury — @workergnome 4

Page 5: Data 101:  Introduction to Data Visualization

Which is biggest?

15012, 8271, 30193, 1189, 9913, 16000, 92481, 49801, 100407, 2910, 3809, 8018, 61528, 18083, 38691, 1800

Data 101. David Newbury — @workergnome 5

Page 6: Data 101:  Introduction to Data Visualization

Which is biggest?

Data 101. David Newbury — @workergnome 6

Page 7: Data 101:  Introduction to Data Visualization

Which is biggest?

Data 101. David Newbury — @workergnome 7

Page 8: Data 101:  Introduction to Data Visualization

Why?Data 101. David Newbury — @workergnome 8

Page 9: Data 101:  Introduction to Data Visualization

(Brief)History ofData Visualization

Data 101. David Newbury — @workergnome 9

Page 10: Data 101:  Introduction to Data Visualization

Tabula Peutingeriana, 5th century CE

Data 101. David Newbury — @workergnome 10

Page 11: Data 101:  Introduction to Data Visualization

Data 101. David Newbury — @workergnome 11

Page 12: Data 101:  Introduction to Data Visualization

Rene Descartes, 1600s

Data 101. David Newbury — @workergnome 12

Page 13: Data 101:  Introduction to Data Visualization

Joseph Priestly, New Chart of History (1769)

Data 101. David Newbury — @workergnome 13

Page 14: Data 101:  Introduction to Data Visualization

William Playfair, (1786 & 1801)

Data 101. David Newbury — @workergnome 14

Page 15: Data 101:  Introduction to Data Visualization

Data 101. David Newbury — @workergnome 15

Page 16: Data 101:  Introduction to Data Visualization

Data 101. David Newbury — @workergnome 16

Page 17: Data 101:  Introduction to Data Visualization

John Snow, London Cholera Map (1854)

Data 101. David Newbury — @workergnome 17

Page 18: Data 101:  Introduction to Data Visualization

Cholera Map

Data 101. David Newbury — @workergnome 18

Page 19: Data 101:  Introduction to Data Visualization

Florence Nightingale, War Deaths (1855)

Data 101. David Newbury — @workergnome 19

Page 20: Data 101:  Introduction to Data Visualization

Charles Minard, March on Moscow (1862)

Data 101. David Newbury — @workergnome 20

Page 21: Data 101:  Introduction to Data Visualization

More recent history.

Data 101. David Newbury — @workergnome 21

Page 22: Data 101:  Introduction to Data Visualization

Data 101. David Newbury — @workergnome 22

Page 23: Data 101:  Introduction to Data Visualization

Edward Tufte

The Visual Display of Quantitative Information.

Data 101. David Newbury — @workergnome 23

Page 24: Data 101:  Introduction to Data Visualization

Data 101. David Newbury — @workergnome 24

Page 25: Data 101:  Introduction to Data Visualization

New York Times

Data 101. David Newbury — @workergnome 25

Page 26: Data 101:  Introduction to Data Visualization

Data 101. David Newbury — @workergnome 26

Page 27: Data 101:  Introduction to Data Visualization

(tiny)

Theory of Visualization

Data 101. David Newbury — @workergnome 27

Page 28: Data 101:  Introduction to Data Visualization

Dataviz is constructed reality.You are telling a story, not (just) stating facts.

Data 101. David Newbury — @workergnome 28

Page 29: Data 101:  Introduction to Data Visualization

data artas opposed to

data visualization

as opposed to

statistical graphicsData 101. David Newbury — @workergnome 29

Page 30: Data 101:  Introduction to Data Visualization

StatisticalGraphicsHow do I create Statistical Graphs in SAS 9.1.3 without Proc Gplot. UCLA: Statistical Consulting Group.http://www.ats.ucla.edu/stat/sas/notes2/Data 101. David Newbury — @workergnome 30

Page 31: Data 101:  Introduction to Data Visualization

Data Art

Dear Data Giorgia Lupi & Stefanie Posavec.http://www.dear-data.com

Data 101. David Newbury — @workergnome 31

Page 32: Data 101:  Introduction to Data Visualization

Two Uses1). help people grasp things outside their reach

Data 101. David Newbury — @workergnome 32

Page 33: Data 101:  Introduction to Data Visualization

Two Uses1). help people grasp things outside their reach

2.) tell stories

Data 101. David Newbury — @workergnome 33

Page 34: Data 101:  Introduction to Data Visualization

explanatory visualization work

as opposed to

exploratory visualizations

Data 101. David Newbury — @workergnome 34

Page 35: Data 101:  Introduction to Data Visualization

Dataviz is constructed reality.Do you care how true your story is?

Do you care how accurate your story is?

Are you trying to teach, entertain, or convince?

Data 101. David Newbury — @workergnome 35

Page 36: Data 101:  Introduction to Data Visualization

Data 101. David Newbury — @workergnome 36

Page 37: Data 101:  Introduction to Data Visualization

Data 101. David Newbury — @workergnome 37

Page 38: Data 101:  Introduction to Data Visualization

Data 101. David Newbury — @workergnome 38

Page 39: Data 101:  Introduction to Data Visualization

Data 101. David Newbury — @workergnome 39

Page 40: Data 101:  Introduction to Data Visualization

(Nerdy)Overview of Concepts

Data 101. David Newbury — @workergnome 40

Page 41: Data 101:  Introduction to Data Visualization

What can you visualise?

Data 101. David Newbury — @workergnome 41

Page 42: Data 101:  Introduction to Data Visualization

Potential Subjects.

subways, sheep, the solar system,shoes, sleep, skyline,snow, supermarket, sausages,school,the sea, spiders,staircases, syrup, soap,sawmills, stereos...

Data 101. David Newbury — @workergnome 42

Page 43: Data 101:  Introduction to Data Visualization

Potential Subjects.

subways, sheep, the solar system,shoes, sleep, skyline,snow, supermarket, sausages,school,the sea, spiders,staircases, syrup, soap,sawmills, stereos...

...and other things that begin with S.

Data 101. David Newbury — @workergnome 43

Page 44: Data 101:  Introduction to Data Visualization

Dimension and Scopeare about choosing what to focus on.

Data 101. David Newbury — @workergnome 44

Page 45: Data 101:  Introduction to Data Visualization

Scope

Out of the infinite stories about any subject, which parts are you going to choose?

Data 101. David Newbury — @workergnome 45

Page 46: Data 101:  Introduction to Data Visualization

Possible Scopes

All trains in a dayAll the rides that I've been on this yearMy train this morningAll of the stops in the cityEach lineEvery train stop in the past 50 years

Data 101. David Newbury — @workergnome 46

Page 47: Data 101:  Introduction to Data Visualization

Dimension

Which bits of information about a subjectare you going to focus on?

Data 101. David Newbury — @workergnome 47

Page 48: Data 101:  Introduction to Data Visualization

Possible Dimensions

number of carsduration of ridedate of a ridedifferent linesnumber of stopscost per ridenumber of stops per daytime between stopsData 101. David Newbury — @workergnome 48

Page 49: Data 101:  Introduction to Data Visualization

What does yourdata look like?

Data 101. David Newbury — @workergnome 49

Page 50: Data 101:  Introduction to Data Visualization

Types of Data

DatesNumbersGeo CoordinateStringsCategories

Data 101. David Newbury — @workergnome 50

Page 51: Data 101:  Introduction to Data Visualization

Types of Data

number of cars - Numericduration of ride - Numericdate of a ride - Datedifferent lines - Categorynumber of stops - Numericcost per ride - Categorynumber of stops per day - Numerictime between stops - NumericData 101. David Newbury — @workergnome 51

Page 52: Data 101:  Introduction to Data Visualization

Two (related ides):

Categories & measures

Data 101. David Newbury — @workergnome 52

Page 53: Data 101:  Introduction to Data Visualization

Categories are Discrete Things

Measures are for Counting

Data 101. David Newbury — @workergnome 53

Page 54: Data 101:  Introduction to Data Visualization

number of cars - Measureduration of ride - Measuredate of a ride - Measuredifferent lines - Categoriesnumber of stops - Measurecost per ride - Categoriesnumber of stops per day - Measuretime between stops - Measurecleanliness - Categories

Data 101. David Newbury — @workergnome 54

Page 55: Data 101:  Introduction to Data Visualization

A hidden dimension:

David, Daniel, Dawn, Danique

Data 101. David Newbury — @workergnome 55

Page 56: Data 101:  Introduction to Data Visualization

A hidden dimension:

David (1), Daniel (2), Dawn (3), Danique (4)

Position of the item in the group.

Data 101. David Newbury — @workergnome 56

Page 57: Data 101:  Introduction to Data Visualization

(Fake)Data Exploration

Data 101. David Newbury — @workergnome 57

Page 58: Data 101:  Introduction to Data Visualization

TRY IT.Data 101. David Newbury — @workergnome 58

Page 59: Data 101:  Introduction to Data Visualization

Choose one.

subways, sheep, the solar system,shoes, sleep, skyline,snow, supermarket, sausages,school,the sea, spiders,staircases, syrup, soap,sawmills, stereos...

...and other things that begin with S.

Data 101. David Newbury — @workergnome 59

Page 60: Data 101:  Introduction to Data Visualization

NowWhat?

Data 101. David Newbury — @workergnome 60

Page 61: Data 101:  Introduction to Data Visualization

We need to map our datafrom a domainto a range.

Data 101. David Newbury — @workergnome 61

Page 62: Data 101:  Introduction to Data Visualization

Domain

number of cars - 1...8duration of ride - 30 sec...2 hoursdate of a ride - - 24ft...200ftdifferent lines - Red line, Blue line, Green line, Silver Line, Yellow Linenumber of stops - **2..20cost per ride - "$2.50, $1.75, $3.00, $0.00"number of stops per day - ??...???Data 101. David Newbury — @workergnome 62

Page 63: Data 101:  Introduction to Data Visualization

Range

Domain is the possible input values

Range is the possible output values

Data 101. David Newbury — @workergnome 63

Page 64: Data 101:  Introduction to Data Visualization

Data3, 7, 10, 6, 2Position of the item in the group.

Domain[0-10][1-5]

RangeX: 400px Y: 800px

MappingX: item position Y: numeric value Data 101. David Newbury — @workergnome 64

Page 65: Data 101:  Introduction to Data Visualization

Data3, 7, 10, 6, 2Position of the item in the group.

AreaData 101. David Newbury — @workergnome 65

Page 66: Data 101:  Introduction to Data Visualization

Data3, 7, 10, 6, 2Position of the item in the group.

ColorData 101. David Newbury — @workergnome 66

Page 67: Data 101:  Introduction to Data Visualization

Data3, 7, 10, 6, 2Position of the item in the group.

MultiplesDimensions

Data 101. David Newbury — @workergnome 67

Page 68: Data 101:  Introduction to Data Visualization

Dataval1: 3, 7, 10, 6, 2val2: 5, 8, 1, 8, 3val3: Cat, Dog, Cat, Cat, DogPosition of the item in the group.

MappingX: item position Y: val1 Size: val2 Color: val3

Data 101. David Newbury — @workergnome 68

Page 69: Data 101:  Introduction to Data Visualization

Dimensions beyond X and Y.

ColorSizeShapeLabelsPatternsIconsAnything Else You Can Imagine

Data 101. David Newbury — @workergnome 69

Page 70: Data 101:  Introduction to Data Visualization

TRY IT.Data 101. David Newbury — @workergnome 70

Page 71: Data 101:  Introduction to Data Visualization

FinishingTouches

Data 101. David Newbury — @workergnome 71

Page 72: Data 101:  Introduction to Data Visualization

Measures get AxisCategories get Headers

Data 101. David Newbury — @workergnome 72

Page 73: Data 101:  Introduction to Data Visualization

Labels

Data 101. David Newbury — @workergnome 73

Page 74: Data 101:  Introduction to Data Visualization

Axis

Category AxisNumber AxisDate AxisLog axis

Data 101. David Newbury — @workergnome 74

Page 75: Data 101:  Introduction to Data Visualization

Legends

Data 101. David Newbury — @workergnome 75

Page 76: Data 101:  Introduction to Data Visualization

TRY IT.Data 101. David Newbury — @workergnome 76

Page 77: Data 101:  Introduction to Data Visualization

Review

DimensionsScope

DomainRange

CategoriesMeasures

Data 101. David Newbury — @workergnome 77

Page 78: Data 101:  Introduction to Data Visualization

(Incomplete)

Overview of Tools

Data 101. David Newbury — @workergnome 78

Page 79: Data 101:  Introduction to Data Visualization

Data 101. David Newbury — @workergnome 79

Page 80: Data 101:  Introduction to Data Visualization

Data 101. David Newbury — @workergnome 80

Page 81: Data 101:  Introduction to Data Visualization

Data 101. David Newbury — @workergnome 81

Page 82: Data 101:  Introduction to Data Visualization

Data 101. David Newbury — @workergnome 82

Page 83: Data 101:  Introduction to Data Visualization

Data 101. David Newbury — @workergnome 83

Page 84: Data 101:  Introduction to Data Visualization

Data 101. David Newbury — @workergnome 84

Page 85: Data 101:  Introduction to Data Visualization

Thank You.

Data 101. David Newbury — @workergnome 85