Популярное

Музыка Кино и Анимация Автомобили Животные Спорт Путешествия Игры Юмор

Интересные видео

2025 Сериалы Трейлеры Новости Как сделать Видеоуроки Diy своими руками

Топ запросов

смотреть а4 schoolboy runaway турецкий сериал смотреть мультфильмы эдисон
dTub
Скачать

How to add text to a figure using the R ggplot2 package with geom_text (CC149)

r add text to figure

r add label to figure

r add label figure

r text ggplot2

r geom_text

r geom_label

ggplot2 visualization

modulus operator

R modulus

R case_when

R if_else

Rstudio

Rstudio ggplot2

covid data visualization

covid Rstudio

covid ggplot2

ggplot2 slope plot

Автор: Riffomonas Project

Загружено: 27 сент. 2021 г.

Просмотров: 2 894 просмотра

Описание:

Adding text labels to your figure to tell your audience what group each point or line comes from. Thankfully, it's relatively easy to pull this off in R using ggplot2's geom_text function. We'll replace our legend with text annotations and talk about how we can make the labels easier to see. Along the way, we'll also learn about the modulus operator (%%) and get to see if_else and case_when in action. The data depict the percentage of people in 15 countries who would be willing to receive the COVID-19 vaccine as of August and October of 2020.

Pat uses the #geom_text function function from #ggplot2 and a variety of functions from the #dplyr, showtext, and ggtext packages in #RStudio. The accompanying blog post can be found at https://www.riffomonas.org/code_club/....

Want more practice on the concepts covered in Code Club? You can sign up for my weekly newsletter at https://shop.riffomonas.org/youtube to get practice problems, tips, and insights.

R: https://r-project.org
RStudio: https://rstudio.com
Workshops: https://www.mothur.org/wiki/workshops

Here's a link for the chartr newsletter: https://www.chartr.co

If you're interested in taking an upcoming 3 day R workshop be sure to check out our schedule at https://riffomonas.org/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 Replacing legends with text labels
1:44 Review of manipulating appearance of text
6:34 Placing text annotation within figure
8:16 Pruning the number of country names
13:07 Justification of text annotations
14:48 Adjusting position of text annotations
17:09 Critique of figure

How to add text to a figure using the R ggplot2 package with geom_text (CC149)

Поделиться в:

Доступные форматы для скачивания:

Скачать видео mp4

  • Информация по загрузке:

Скачать аудио mp3

Похожие видео

How to prevent text labels from overlapping in R with ggplot2 and ggrepel packages (CC150)

How to prevent text labels from overlapping in R with ggplot2 and ggrepel packages (CC150)

But what is the Fourier Transform?  A visual introduction.

But what is the Fourier Transform? A visual introduction.

Deep & Melodic House 24/7: Relaxing Music • Chill Study Music

Deep & Melodic House 24/7: Relaxing Music • Chill Study Music

How to set the order and value of factors in R using factor and fct_reorder (CC148)

How to set the order and value of factors in R using factor and fct_reorder (CC148)

Linear Regression, Clearly Explained!!!

Linear Regression, Clearly Explained!!!

Самая простая нерешённая задача — гипотеза Коллатца [Veritasium]

Самая простая нерешённая задача — гипотеза Коллатца [Veritasium]

How to use Microsoft Access - Beginner Tutorial

How to use Microsoft Access - Beginner Tutorial

How To Use Mendeley 2025 (Including Web Importer & Cite) - Full Tutorial With Examples

How To Use Mendeley 2025 (Including Web Importer & Cite) - Full Tutorial With Examples

How to use a custom font in R with showtext and google fonts (CC262)

How to use a custom font in R with showtext and google fonts (CC262)

Музыка для работы — Deep Focus Mix для программирования, кодирования

Музыка для работы — Deep Focus Mix для программирования, кодирования

© 2025 dtub. Все права защищены.



  • Контакты
  • О нас
  • Политика конфиденциальности



Контакты для правообладателей: [email protected]