filmov
tv
Recreating a jitter plot made with R's ggplot2 two years later (CC243)
![preview_player](https://i.ytimg.com/vi/emjl3QpZ9dw/sddefault.jpg)
Показать описание
Pat loves the ability to easily make jitter plots in R with tools from ggplot2. In this episode, Pat recreates his own figure from 2 years ago and then compares the code. How similar do you think the code will be? How similar would your code be after 2 years of learning and using more R? Watch as Pat uses magrittr aliases, map_dfr, if_else, ggplot2, geom_jitter, theme, scale_x_log10, scale_color_manual, and more. This episode is a bit different than Pat's other episodes and would love your feedback on this type of content!
#geom_jitter #ggplot2 #tidyverse #R #Rstudio #Rstats
Support Riffomonas by becoming a Patreon member!
You can also find complete tutorials for learning R with the tidyverse using...
0:00 Introduction
2:09 Reading in data files with map_dfr
12:50 Building initial jittered plot
14:04 Creating a log10 scale for x-axis
15:42 Setting the color and alpha of points
16:57 Altering the theme of the figure
19:26 Changing the amount of jitter
20:48 Reversing the order of datasets on y-axis
23:09 Final formatting and saving of figure
24:51 Comparing new code to old code
#geom_jitter #ggplot2 #tidyverse #R #Rstudio #Rstats
Support Riffomonas by becoming a Patreon member!
You can also find complete tutorials for learning R with the tidyverse using...
0:00 Introduction
2:09 Reading in data files with map_dfr
12:50 Building initial jittered plot
14:04 Creating a log10 scale for x-axis
15:42 Setting the color and alpha of points
16:57 Altering the theme of the figure
19:26 Changing the amount of jitter
20:48 Reversing the order of datasets on y-axis
23:09 Final formatting and saving of figure
24:51 Comparing new code to old code
Комментарии