displaying data badly - jhsph ocw

42
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike License . Your use of this material constitutes acceptance of that license and the conditions of use of materials on this site. Copyright 2006, The Johns Hopkins University and Karl W. Broman. All rights reserved. Use of these materials permitted only in accordance with license rights granted. Materials provided “AS IS”; no representations or warranties provided. User assumes all responsibility for use, and all liability related thereto, and must independently review all materials for accuracy and efficacy. May contain materials owned by others. User is responsible for obtaining permissions for use from third parties as needed.

Upload: others

Post on 15-Oct-2021

9 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Displaying data badly - JHSPH OCW

This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike License. Your use of this material constitutes acceptance of that license and the conditions of use of materials on this site.

Copyright 2006, The Johns Hopkins University and Karl W. Broman. All rights reserved. Use of these materials permitted only in accordance with license rights granted. Materials provided “AS IS”; no representations or warranties provided. User assumes all responsibility for use, and all liability related thereto, and must independently review all materials for accuracy and efficacy. May contain materials owned by others. User is responsible for obtaining permissions for use from third parties as needed.

Page 2: Displaying data badly - JHSPH OCW

How to display data badly

Karl W. BromanDepartment of Biostatistics

http://www.biostat.jhsph.edu/~kbroman

Page 3: Displaying data badly - JHSPH OCW

Using Microsoft Excel to obscure your data and annoy your readers

Karl W BromanDepartment of Biostatistics

http://www.biostat.jhsph.edu/~kbroman

Page 4: Displaying data badly - JHSPH OCW

4

Inspiration

This lecture was inspired by

H Wainer (1984) How to display data badly. American Statistician 38(2):137-147

Dr. Wainer was the first to elucidate the principles of the bad display of data.

The now widespread use of Microsoft Excel has resulted in remarkable advances in the field.

Page 5: Displaying data badly - JHSPH OCW

5

General principles

The aim of good data graphics:Display data accurately and clearly.

Some rules for displaying data badly:– Display as little information as possible.– Obscure what you do show (with chart junk).– Use pseudo-3d and color gratuitously.– Make a pie chart (preferably in color and 3d).– Use a poorly chosen scale.– Ignore sig figs.

Page 6: Displaying data badly - JHSPH OCW

6

Example 1

Page 7: Displaying data badly - JHSPH OCW

7

Example 1

Page 8: Displaying data badly - JHSPH OCW

8

Example 1

Page 9: Displaying data badly - JHSPH OCW

9

Example 1

Page 10: Displaying data badly - JHSPH OCW

10

Example 1

Page 11: Displaying data badly - JHSPH OCW

11

Example 1

Page 12: Displaying data badly - JHSPH OCW

12

Example 1

Page 13: Displaying data badly - JHSPH OCW

13

Example 1

Page 14: Displaying data badly - JHSPH OCW

14

Example 2

Distribution of genotypes

AA 21%AB 48%BB 22%missing 9%

Page 15: Displaying data badly - JHSPH OCW

15

Example 2

Page 16: Displaying data badly - JHSPH OCW

16

Example 2

Page 17: Displaying data badly - JHSPH OCW

17

Example 2

Page 18: Displaying data badly - JHSPH OCW

18

Example 2

Page 19: Displaying data badly - JHSPH OCW

19

Example 2

Page 20: Displaying data badly - JHSPH OCW

20

Example 3

Page 21: Displaying data badly - JHSPH OCW

21

Example 3

Page 22: Displaying data badly - JHSPH OCW

22

Example 3

Page 23: Displaying data badly - JHSPH OCW

23

Example 3

Page 24: Displaying data badly - JHSPH OCW

24

Example 4

Page 25: Displaying data badly - JHSPH OCW

25

Example 4

Page 26: Displaying data badly - JHSPH OCW

26

Example 4

Page 27: Displaying data badly - JHSPH OCW

27

Example 5

Page 28: Displaying data badly - JHSPH OCW

28

Example 5

Page 29: Displaying data badly - JHSPH OCW

29

Example 5

Page 30: Displaying data badly - JHSPH OCW

30

Example 5

Page 31: Displaying data badly - JHSPH OCW

31

Example 5

Page 32: Displaying data badly - JHSPH OCW

32

Example 5

Page 33: Displaying data badly - JHSPH OCW

33

Example 6

Page 34: Displaying data badly - JHSPH OCW

34

Example 6

Page 35: Displaying data badly - JHSPH OCW

35

Example 6

Page 36: Displaying data badly - JHSPH OCW

36

Example 6

Page 37: Displaying data badly - JHSPH OCW

37

Example 7

Page 38: Displaying data badly - JHSPH OCW

38

Example 7

Page 39: Displaying data badly - JHSPH OCW

39

Example 8

Page 40: Displaying data badly - JHSPH OCW

40

Example 8

Page 41: Displaying data badly - JHSPH OCW

41

Displaying data well

• Be accurate and clear.

• Let the data speak.– Show as much information as possible, taking

care not to obscure the message.

• Science not sales.– Avoid unnecessary frills — esp. gratuitous 3d.

• In tables, every digit should be meaningful. Don’t drop ending 0’s.

Page 42: Displaying data badly - JHSPH OCW

42

Further reading

• ER Tufte (1983) The visual display of quantitative information. Graphics Press.

• ER Tufte (1990) Envisioning information. Graphics Press.

• ER Tufte (1997) Visual explanations. Graphics Press.

• WS Cleveland (1993) Visualizing data. Hobart Press.

• WS Cleveland (1994) The elements of graphing data. CRC Press.