Preface |
|
vii | |
What this book is about |
|
vii | |
What you need to know to make this book work for you |
|
viii | |
How the book is organized |
|
ix | |
|
|
1 | (4) |
|
Chapter 2 Import, Explore, Graph I---Getting Started |
|
|
5 | (18) |
|
2.1 Where to put your data |
|
|
7 | (3) |
|
2.2 Make a folder for your instructions (code, script) |
|
|
10 | (1) |
|
2.3 How to get your data into R and where it is stored in R's brain |
|
|
10 | (1) |
|
2.4 Working with R---hints for a successful first (and more) interaction |
|
|
11 | (4) |
|
2.5 Make your first script file |
|
|
15 | (3) |
|
2.6 Starting to control R |
|
|
18 | (1) |
|
2.7 Making R work for you---developing a workflow |
|
|
19 | (2) |
|
|
21 | (2) |
|
Chapter 3 Import, Explore, Graph II---Importing and Exploring |
|
|
23 | (16) |
|
3.1 Getting your data into R |
|
|
23 | (3) |
|
3.2 Checking that your data is your data |
|
|
26 | (2) |
|
3.3 Summarizing your data---quick version |
|
|
28 | (1) |
|
3.4 How to isolate, find, and grab parts of your data---I |
|
|
28 | (2) |
|
3.5 How to isolate, find, and grab parts of your data---II |
|
|
30 | (1) |
|
3.6 Aggregation and how to use a help file |
|
|
31 | (4) |
|
3.7 What your first script might look like (what you should now know) |
|
|
35 | (4) |
|
Chapter 4 Import, Explore, Graph III---Graphs |
|
|
39 | (26) |
|
4.1 The first step in data analysis---making a picture |
|
|
39 | (1) |
|
4.2 Making a picture---bar graphs |
|
|
40 | (10) |
|
|
44 | (6) |
|
4.3 Making a picture---scatterplots |
|
|
50 | (14) |
|
4.3.1 Pimp my scatterplot: axis labels |
|
|
53 | (1) |
|
4.3.2 Pimp my scatterplot: points |
|
|
54 | (2) |
|
4.3.3 Pimp my scatterplot: colours (and groups) |
|
|
56 | (3) |
|
4.3.4 Pimp my scatterplot: legend |
|
|
59 | (5) |
|
4.4 Plotting extras: pdfs, layout, and the lattice package |
|
|
64 | (1) |
|
Chapter 5 Doing your Statistics in R---Getting Started |
|
|
65 | (40) |
|
|
66 | (4) |
|
|
70 | (7) |
|
5.2.1 The first step: plot your data |
|
|
72 | (4) |
|
5.2.2 The two sample t-test analysis |
|
|
76 | (1) |
|
5.3 General linear models |
|
|
77 | (15) |
|
5.3.1 Always start with a picture |
|
|
78 | (2) |
|
5.3.2 Potential statistical and biological hypotheses---it's all about lines |
|
|
80 | (3) |
|
5.3.3 Specifying the model |
|
|
83 | (1) |
|
5.3.4 Plot, model, then assumptions |
|
|
84 | (2) |
|
|
86 | (3) |
|
5.3.6 Treatment contrasts and coefficients |
|
|
89 | (1) |
|
|
89 | (3) |
|
5.4 Making a publication quality figure |
|
|
92 | (13) |
|
5.4.1 Coefficients, lines, and lines() |
|
|
93 | (1) |
|
5.4.2 Expanded grids, prediction, and a more generic model plotting method |
|
|
94 | (5) |
|
|
99 | (2) |
|
5.4.4 An analysis workflow |
|
|
101 | (4) |
|
Chapter 6 Final Comments and Encouragement |
|
|
105 | (4) |
Appendix: References and Datasets |
|
109 | (2) |
Index |
|
111 | |