| |
| |
Preface | |
| |
| |
What this book is about | |
| |
| |
What you need to know to make this book work for you | |
| |
| |
How the book is organized | |
| |
| |
| |
Why R? | |
| |
| |
| |
Import, Explore, Graph I-Getting Started | |
| |
| |
| |
Where to put your data | |
| |
| |
| |
Make a folder for your instructions (code, script) | |
| |
| |
| |
How to get your data into R and where it is stored in R's brain | |
| |
| |
| |
Working with R-hints for a successful first (and more) interaction | |
| |
| |
| |
Make your first script file | |
| |
| |
| |
Starting to control R | |
| |
| |
| |
Making R work for you-developing a workflow | |
| |
| |
| |
And finally … | |
| |
| |
| |
Import, Explore, Graph II-Importing and Exploring | |
| |
| |
| |
Getting your data into R | |
| |
| |
| |
Checking that your data is your data | |
| |
| |
| |
Summarizing your data-quick version | |
| |
| |
| |
How to isolate, find, and grab parts of your data-I | |
| |
| |
| |
How to isolate, find, and grab parts of your data-II | |
| |
| |
| |
Aggregation and how to use a help file | |
| |
| |
| |
What your first script might look like (what you should now know) | |
| |
| |
| |
Import, Explore, Graph III-Graphs | |
| |
| |
| |
The first step in data analysis-making a picture | |
| |
| |
| |
Making a picture-bar graphs | |
| |
| |
| |
Pimp my barplot | |
| |
| |
| |
Making a picture-scatterplots | |
| |
| |
| |
Pimp my scatterplot: axis labels | |
| |
| |
| |
Pimp my scatterplot: points | |
| |
| |
| |
Pimp my scatterplot: colours (and groups) | |
| |
| |
| |
Pimp my scatterplot: legend | |
| |
| |
| |
Plotting extras: pdfs, layout, and the lattice package | |
| |
| |
| |
Doing your Statistics in R-Getting Started | |
| |
| |
| |
Chi-square | |
| |
| |
| |
Two sample t-test | |
| |
| |
| |
The first step: plot your data | |
| |
| |
| |
The two sample t-test analysis | |
| |
| |
| |
General linear models | |
| |
| |
| |
Always start with a picture | |
| |
| |
| |
Potential statistical and biological hypotheses-it's all about lines | |
| |
| |
| |
Specifying the model | |
| |
| |
| |
Plot, model, then assumptions | |
| |
| |
| |
Interpretation | |
| |
| |
| |
Treatment contrasts and coefficients | |
| |
| |
| |
Interpretation | |
| |
| |
| |
Making a publication quality figure | |
| |
| |
| |
Coefficients, lines, and lines() | |
| |
| |
| |
Expanded grids, prediction, and a more generic model plotting method | |
| |
| |
| |
The final picture | |
| |
| |
| |
An analysis workflow | |
| |
| |
| |
Final Comments and Encouragement | |
| |
| |
Appendix: References and Datasets | |
| |
| |
Index | |