Город МОСКОВСКИЙ
00:19:34

CC086. Changing the size of points in in ggplot2 with scale_size

Аватар
Learn American English
Просмотры:
6
Дата загрузки:
01.01.2025 18:49
Длительность:
00:19:34
Категория:
Обучение

Описание

The original video is available on https://www.youtube.com/watch?v=Ix29s_Gg5yY

After watching this video, changing the size of points in a ggplot2 generated scatter plot will be a breeze! In this episode of Code Club, Pat shows how you can easily create a gradient of point sizes to include more data in an ordination using geom_point and scale_size. He'll also discuss whether it's a good idea to do this. Regardless, you'll leave this video with the skills you need to create a bubble chart.

Pat will use RStudio and functions from the ggplot2 package and other packages from the tidyverse. 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 riffomonas@gmail.com!

Hans Rosling TED Talk: https://www.ted.com/talks/hans_roslin...
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
3:53 Mapping diversity to the size of the points
6:22 Removing legends
7:54 Customizing the size range of the points
9:42 Customizing appearance of legend
12:07 Critiquing plot
14:32 Thoughts about using a color gradient
16:00 Figures should do one thing well
17:20 Conclusion

Рекомендуемые видео