Presentation is loading. Please wait.

Presentation is loading. Please wait.

Lecture 1: Beautiful graphics in R Trevor A. Branch Beautiful graphics in R, FISH554 SAFS, University of Washington.

Similar presentations


Presentation on theme: "Lecture 1: Beautiful graphics in R Trevor A. Branch Beautiful graphics in R, FISH554 SAFS, University of Washington."— Presentation transcript:

1 Lecture 1: Beautiful graphics in R Trevor A. Branch Beautiful graphics in R, FISH554 SAFS, University of Washington

2

3

4

5 Source: 7 Dec 2012

6 Project and credit Project: four complex figures, three from your data, one redrawn from Porzio et al. (more details: class website https://canvas.uw.edu/courses/881902)https://canvas.uw.edu/courses/ For credit, electronic submission of draft figures (10 March), presentation of your best figure in class (online 16 March, in class 17 March), submission of final figures (21 March)

7 During class My aim is to ensure that all of you can produce beautiful, informative figures for your MS/PhD and scientific papers Listen to the lecture or read the handout or follow along with the PowerPoint on your computer or try out R code that I present What happens if I type this? Don’t just ask me, try it yourself!

8 Tufte: Principles of graphical excellence Well-designed presentation of interesting data Complex ideas communicated with clarity, precision, and efficiency Greatest number of ideas in shortest time with least ink in smallest space Nearly always multivariate Requires telling the truth about the data

9 Napoleon’s campaign to conquer Russia Original plot by Minard (1861) Tufte (2001) The visual display of quantitative information, p. 41

10 Tufte: better graphics Lie factor and exaggeration Chartjunk Maximize data:ink ratio Erase non-data ink Increase the data density Labels on the figures

11 Figure: New York Times, 9 August 1978, p. D-2 Tufte (2001) The visual display of quantitative information, p

12 Tufte (2001) The visual display of quantitative information, p. 59 “Here there are many decorations, but no lies”

13 Tufte (2001) The visual display of quantitative information, p Lie Factor 9.5… by volume dollar should be 2 X Washington Post, October 25, 1978, p. 1New York Times, January 27, 1981, p. D-1

14 Tufte (2001) The visual display of quantitative information, p. 66 Chartjunk and exaggeration “The Graph of the Magical Parallelipipeds” Inflation +103% Population +10%

15 Tufte (2001) The visual display of quantitative information, p. 67

16 Tufte (2001) The visual display of quantitative information, p. 68

17 “In time-series displays of money, deflated and standardized units of monetary measurement are nearly always better than nominal units” Tufte (2001) The visual display of quantitative information, p. 68

18 Data density index The number of numbers plotted per cm 2 (Tufte) Figure: Uzzi et al. (2013) Atypical combinations and scientific impact. Science 342: Tufte ER (2001) The visual display of quantitative information DDI = 0.05 for Fig. 2 of Uzzi et al. (2013) High numbers are better Commonly ranges from 0.1 to >300

19 Tufte (2001) The visual display of quantitative information, p

20 Kooi (1971) Fundamentals of electroencephalography, New York, p. 110 Tufte (2001) The visual display of quantitative information, p. 93

21

22 Tufte (2001) The visual display of quantitative information, p Kelley & Bowen (1967) American Political Science Review, 61:371

23 Tufte (2001) The visual display of quantitative information, p Pauling (1947) General chemistry, San Francisco, p. 64 Data-ink ratio: < 0.6Data-ink ratio: 0.9

24 Tufte (2001) The visual display of quantitative information, p

25 CJFAS-mandated styleLabels directly on subplots Lessard et al. (2008) CJFAS 65: Label the figures, not the legends

26 Principles of graphics design Above all else show the data Maximize the data-ink ratio Erase non-data-ink Erase redundant data-ink Revise and edit Tufte (2001) The visual display of quantitative information, p. 105

27 Tufte (2001) The visual display of quantitative information, p. 102Kuznicki & McCutcheon (1979) Journal of Experimental Psychology: General, 108:76 Barplots 1

28 Tufte (2001) The visual display of quantitative information, p Barplots 2

29 Tufte (2001) The visual display of quantitative information, p Erase the box

30 Tufte (2001) The visual display of quantitative information, p Leave only the tick marks

31 Tufte (2001) The visual display of quantitative information, p Erase some data to make a white grid

32 Tufte (2001) The visual display of quantitative information, p. 125 Parallel boxplots

33 Tufte (2001) The visual display of quantitative information, p. 125 Parallel boxplots “Original has 50 horizontals and 30 vertical lines, revised needs only 10 verticals to show the same data”

34 Tufte (2001) The visual display of quantitative information, p Scatterplots

35 Tufte (2001) The visual display of quantitative information, p Scatterplots

36 Tufte (2001) The visual display of quantitative information, p Scatterplots

37 Tufte (2001) The visual display of quantitative information, p. 133 Turn axes into quartiles

38 Tufte (2001) The visual display of quantitative information, p. 113 Age distribution of the population of France

39 Draft figure: Branch TA Analysis of Worm et al. (2006) Science 314: How do people cite Worm et al. (2006)? P-value Sample size


Download ppt "Lecture 1: Beautiful graphics in R Trevor A. Branch Beautiful graphics in R, FISH554 SAFS, University of Washington."

Similar presentations


Ads by Google