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

Опубликовано: 29 Июль 2026
на канале: король тьмы
21
0

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 .

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:
RStudio:
Raw data:
Workshops:

You can also find complete tutorials for learning R with the tidyverse using...
Microbial ecology data:
General data:

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