Preface |
|
xi | |
What You Will Learn |
|
xii | |
The Right Frame of Mind |
|
xiv | |
How to Use This Book |
|
xv | |
Conventions |
|
xvi | |
Before You Begin |
|
xvii | |
|
|
1 | (31) |
|
|
2 | (3) |
|
1.2 What Makes Bad Figures Bad? |
|
|
5 | (9) |
|
1.3 Perception and Data Visualization |
|
|
14 | (9) |
|
1.4 Visual Tasks and Decoding Graphs |
|
|
23 | (3) |
|
1.5 Channels for Representing Data |
|
|
26 | (1) |
|
1.6 Problems of Honesty and Good Judgment |
|
|
27 | (2) |
|
1.7 Think Clearly about Graphs |
|
|
29 | (2) |
|
|
31 | (1) |
|
|
32 | (22) |
|
2.1 Work in Plain Text, Using RMarkdown |
|
|
32 | (3) |
|
|
35 | (3) |
|
2.3 Things to Know about R |
|
|
38 | (10) |
|
2.4 Be Patient with R, and with Yourself |
|
|
48 | (1) |
|
|
49 | (2) |
|
2.6 Make Your First Figure |
|
|
51 | (1) |
|
|
52 | (2) |
|
|
54 | (19) |
|
|
54 | (2) |
|
|
56 | (1) |
|
3.3 Mappings Link Data to Things You See |
|
|
56 | (3) |
|
3.4 Build Your Plots Layer by Layer |
|
|
59 | (4) |
|
3.5 Mapping Aesthetics vs Setting Them |
|
|
63 | (3) |
|
3.6 Aesthetics Can Be Mapped per Geom |
|
|
66 | (2) |
|
|
68 | (3) |
|
|
71 | (2) |
|
|
73 | (20) |
|
4.1 Colorless Green Data Sleeps Furiously |
|
|
74 | (1) |
|
4.2 Grouped Data and the "Group" Aesthetic |
|
|
74 | (2) |
|
4.3 Facet to Make Small Multiples |
|
|
76 | (4) |
|
4.4 Geoms Can Transform Data |
|
|
80 | (2) |
|
4.5 Frequency Plots the Slightly Awkward Way |
|
|
82 | (3) |
|
4.6 Histograms and Density Plots |
|
|
85 | (3) |
|
4.7 Avoid Transformations When Necessary |
|
|
88 | (3) |
|
|
91 | (2) |
|
5 Graph Tables, Add Labels, Make Notes |
|
|
93 | (41) |
|
5.1 Use Pipes to Summarize Data |
|
|
94 | (8) |
|
5.2 Continuous Variables by Group or Category |
|
|
102 | (13) |
|
|
115 | (6) |
|
|
121 | (3) |
|
5.5 Write and Draw in the Plot Area |
|
|
124 | (1) |
|
5.6 Understanding Scales, Guides, and Themes |
|
|
125 | (6) |
|
|
131 | (3) |
|
|
134 | (39) |
|
6.1 Show Several Fits at Once, with a Legend |
|
|
135 | (2) |
|
6.2 Look Inside Model Objects |
|
|
137 | (4) |
|
6.3 Get Model-Based Graphics Right |
|
|
141 | (2) |
|
6.4 Generate Predictions to Graph |
|
|
143 | (3) |
|
6.5 Tidy Model Objects with Broom |
|
|
146 | (5) |
|
6.6 Grouped Analysis and List Columns |
|
|
151 | (6) |
|
6.7 Plot Marginal Effects |
|
|
157 | (4) |
|
6.8 Plots from Complex Surveys |
|
|
161 | (7) |
|
|
168 | (5) |
|
|
173 | (26) |
|
7.1 Map U.S. State-Level Data |
|
|
175 | (7) |
|
7.2 America's Ur-choropleths |
|
|
182 | (7) |
|
|
189 | (2) |
|
|
191 | (3) |
|
7.5 Is Your Data Really Spatial? |
|
|
194 | (4) |
|
|
198 | (1) |
|
|
199 | (34) |
|
8.1 Use Color to Your Advantage |
|
|
201 | (4) |
|
8.2 Layer Color and Text Together |
|
|
205 | (3) |
|
8.3 Change the Appearance of Plots with Themes |
|
|
208 | (3) |
|
8.4 Use Theme Elements in a Substantive Way |
|
|
211 | (4) |
|
|
215 | (15) |
|
|
230 | (5) |
Acknowledgments |
|
233 | (2) |
Appendix |
|
235 | (26) |
|
|
235 | (10) |
|
2 Common Problems Reading in Data |
|
|
245 | (8) |
|
3 Managing Projects and Files |
|
|
253 | (4) |
|
4 Some Features of This Book |
|
|
257 | (4) |
References |
|
261 | (6) |
Index |
|
267 | |