MENU

Fun & Interesting

Reusing your R code to generate a new figure for a different data set (CC082)

Riffomonas Project 1,599 4 years ago
Video Not Working? Fix It Now

The benefit of coding for reproducibilty is reusing your R code to generate a figure that you've used before, but for a different dataset. Pedagogically, it's also a great way to learn to code because you can take code that works, break it with new data and learn how the code works by fixing it. That's just what Pat will do in this episode of Code Club. Pat will use RStudio and functions from the ggplot2 package and other packages from the tidyverse. The accompanying blog post can be found at https://www.riffomonas.org/code_club/2021-03-22-reproducibility Do you have a figure that you would like to receive a critique or help improving? Let me know and I'd be happy to arrange a guest appearance! If you're interested in taking an upcoming 3 day R workshop, email me at [email protected]! R: https://r-project.org RStudio: https://rstudio.com Raw data: https://github.com/riffomonas/raw_data/releases/latest Workshops: https://www.mothur.org/wiki/workshops You can also find complete tutorials for learning R with the tidyverse using... Microbial ecology data: https://www.riffomonas.org/minimalR/ General data: https://www.riffomonas.org/generalR/ 0:00 Reproducibility 3:04 Modifying adonis code 14:01 Modifying ordination code 21:33 Conclusion

Comment