Online R learning project for advanced undergrads during the COVID-19 pandemic
- author: Chenxin Li
- Grad student
- Department of Plant Biology, UC Davis
- lukli@ucdavis.edu
This repository has 14 activities:
- Very basics of R coding
- Data wrangling with dplyr and tidyr
- Formatting ggplots – faceting, scales, guides, and themes
- Design custom palette in R
- One-way ANOVA and the compact letter display
- What to do when ANOVA assumption fails
- Randomized block design ANOVA
- Multifactorial deign ANOVA and interactions
- Repeated measures ANOVA
- Split field and nested experimental design
- Correlation and linear regression
- Polynomial curve fitting
- Logistic regression
- Proportions, contingency tables and enrichment
The first three units focus on how to tidy data and make pretty plots.
Units 4 - 9 focus on ANOVA and Tukey tests.
Units 10 - 12 focus on regression.
Formal math is kept to minimum. The series focus on basic concepts, interpretation and execution in R.
Each unit builds upon the previous. After each unit, there is also an exercise.
- Clone the repository to your machine by downloading the zip file
- Unzip (and move the “Online_R_learning-master” folder to whichever folder you like on your machine).
- Open RStudio and create a new project: File - New Project. Select Existing Directory.
- Set the folder directly containing "R_codes", "data" and "answer_keys" subfolders as the working directory. Important! If you don't set the right folder, R will have trouble loading the data files.
- Open .Rmd files under the R_codes folder: File - Open File.
- Under the Knit or Preview drop down menu, select Project Directory. Important! This way R can load the data files.