How to create a grouped plot of jittered data with the ggplot2 R package (CC108)

Опубликовано: 24 Май 2021
на канале: Riffomonas Project
5,610
112

A grouped plot with jittered data can be an effective way to represent the variation across a continuous variable for multiple levels of two categorical variables. These plots can be made in R using the geom_jitter and position_jitterdodge functions from the ggplot2 R package. You can indicate the median of the distributions using ggplot2's stat_summary function. Watch this episode where Pat will demonstrate how to create these effective visualizations.


Pat will use RStudio and the #geom_jitter, #position_jitterdodge, #stat_summary, and #position_dodge functions from the #ggplot2, package. The accompanying blog post can be found at https://www.riffomonas.org/code_club/....

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_dat...
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:34 Convert barchart to stripchart
14:13 Fix legend placement
17:32 Add bar to indicate the median
22:23 Critique and recap