У нас вы можете посмотреть бесплатно Using the R glue package to embed variable values in ggplot2 figures (CC085) или скачать в максимальном доступном качестве, видео которое было загружено на ютуб. Для загрузки выберите вариант из формы ниже:
Если кнопки скачивания не
загрузились
НАЖМИТЕ ЗДЕСЬ или обновите страницу
Если возникают проблемы со скачиванием видео, пожалуйста напишите в поддержку по адресу внизу
страницы.
Спасибо за использование сервиса ClipSaver.ru
I had heard people talk about using the glue package in their R code, but hadn't tried it myself. I've only ever used the paste and paste0 functions to embed variable values into strings. In this episode of Code Club, I'll compare and contrast the glue and paste functions and show how to use glue to embed values in text that is displayed in a figure created using ggplot2. 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 [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 3:11 Comparing paste, paste0, and glue 4:58 Converting code for generating NMDS to PCoA figure 7:34 Inserting values into the x and y-axis labels with paste0 and glue 9:46 Using glue to insert hexadecimal colors into title 13:54 Inserting line breaks to make code more readable 15:19 Critique of figure 16:30 Conclusion