How to create a grouped bar chart in R with ggplot2's geom_col and position_dodge functions (CC107)
Автор: Riffomonas Project
Загружено: 21 мая 2021 г.
Просмотров: 33 594 просмотра
A grouped bar chart plot 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_col and position_dodge functions from the ggplot2 R package. Watch this episode where Pat will demonstrate how to create barplots. Although these are superior to stacked barcharts, there are still problems with barcharts that he will discuss in this episode of Code Club.
Pat will use RStudio and the #geom_col 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
5:56 Creating a grouped barchart
8:38 Deciding Which variable to group by on x-axis
14:09 Changing the plot to use genus data
22:57 Critique and Recap

Доступные форматы для скачивания:
Скачать видео mp4
-
Информация по загрузке: