MENU

Fun & Interesting

Creating a grouped box plot and range plot in ggplot2 with stat_summary and geom_boxplot (CC109)

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

Showing all of your data in a plot can lead to a busy plot. In this episode of Code Club, Pat will show you how to create a grouped box plot and range plot (point range plot) using microbiome data with the geom_boxplot and stat_summary functions from ggplot2. Pat will use RStudio and the #stat_summary and #geom_boxplot functions from the #ggplot2, package. The accompanying blog post can be found at https://www.riffomonas.org/code_club/2021-05-26-summary-plots. 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 Introduction 4:20 Recap of how to create jitterplot 6:19 Convert jitterplot to box and whisker plot 10:45 Switch to genus and flip orientation 12:54 Convert to point and range plot 21:19 Critique of figure

Comment