srikanthkris / Online_R_learning

Online R learning project for advanced undergrads during the COVID-19 pandemic

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Online_R_learning

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

Content

This repository has 14 activities:

  1. Very basics of R coding

  2. Data wrangling with dplyr and tidyr

  3. Formatting ggplots – faceting, scales, guides, and themes

  4. Design custom palette in R

  5. One-way ANOVA and the compact letter display

  6. What to do when ANOVA assumption fails

  7. Randomized block design ANOVA

  8. Multifactorial deign ANOVA and interactions

  9. Repeated measures ANOVA

  10. Split field and nested experimental design

  11. Correlation and linear regression

  12. Polynomial curve fitting

  13. Logistic regression

  14. Proportions, contingency tables and enrichment

This first three units focus on how to tidy data and 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.

Getting started

  1. Clone the repository to your machine by downloading the zip file
  2. Unzip (and move the “Online_R_learning” directory to whichever you like on your machine).
  3. Open RStudio and create a new project, setting “Online_R_learning” as the working directory.
  4. Run .Rmd files under the /R_codes folder.

Side note

If you experience problems with loading data, i.e. "path does not exist" or "file does not exist in working directory" Try this: In your RStudio, under the Preview (or Knit) drop down menu, go the Knit Directory tab, and select Project Directory, NOT Document Directory.

About

Online R learning project for advanced undergrads during the COVID-19 pandemic