Adding text to ggplot figures to annotate your data with geom_label and geom_segment (CC068)
Автор: Riffomonas Project
Загружено: 1 февр. 2021 г.
Просмотров: 2 318 просмотров
Adding text to ggplot figures can help call attention to data in a figure. Have you ever wondered how you can do it? In this episode of Code Club, I show you how you can use geom_label, geom_annotate, and geom_segment to add text to your ggplot generated figure. I'll show how you can modify the placement of these annotations to make your figure publication ready!
This episode is part of a larger arc of episodes investigating the sensitivity and specificity of amplicon sequence variants (ASVs), also known as exact sequence variants (ESVs) and operational taxonomic units (OTUs). ASVs are growing in popularity for analyzing microbial communities using 16S rRNA gene sequences. Proponents think that they should supplant operational taxonomic units (OTUs). What do you think? Pat demonstrates these concepts by live coding at the command line interface using GitHub Flow, Make, and RStudio.
The accompanying blog post can be found at http://www.riffomonas.org/code_club/2...
You can also find complete tutorials for learning R with the tidyverse using...
Microbial ecology data: http://www.riffomonas.org/minimalR/
General data: http://www.riffomonas.org/generalR/
0:00 Introduction
5:49 Setting up initial ROC curve figure
7:14 Loading and merging the data for various criteria
10:41 Drawing annotations lines with geom_segment
14:58 Selecting coordinates of segment ends
18:53 Adding text annotation with geom_label
21:56 Cleaning up appearance of figure
25:10 Adding to make and Rmd files
30:36 Conclusion

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