Using geom_line to change the appearance of a line plot with ggplot2 in R (CC097)
The original video is available on https://www.youtube.com/watch?v=R0YVITfGj_w Have a boring line plot? Pat uses geom_line from the ggplot2 R package to walk through how to make attractive (and ugly) line plots in this episode of Code Club. Pat will modify a figure with a set of receiver operator characteristic (ROC) curves to change their thickness, pattern, color, and how line ends and segments are joined together. Finally, he'll bring it all together to make an attractive (and kinda ugly) figure. Pat will use RStudio and functions from the #ggplot2 package including #geom_line, #theme 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! 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 1:49 ROC curves w/ geom_line 2:40 size parameter 3:33 linetype aesthetic (w/ numbers) 5:39 linetype aesthetic (w/ words) 6:25 color and group aesthetics 8:03 An experiment 10:32 lineend and linejoin parameters 12:42 Improving appearance of figure 20:11 Experiment!
The original video is available on https://www.youtube.com/watch?v=R0YVITfGj_w Have a boring line plot? Pat uses geom_line from the ggplot2 R package to walk through how to make attractive (and ugly) line plots in this episode of Code Club. Pat will modify a figure with a set of receiver operator characteristic (ROC) curves to change their thickness, pattern, color, and how line ends and segments are joined together. Finally, he'll bring it all together to make an attractive (and kinda ugly) figure. Pat will use RStudio and functions from the #ggplot2 package including #geom_line, #theme 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! 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 1:49 ROC curves w/ geom_line 2:40 size parameter 3:33 linetype aesthetic (w/ numbers) 5:39 linetype aesthetic (w/ words) 6:25 color and group aesthetics 8:03 An experiment 10:32 lineend and linejoin parameters 12:42 Improving appearance of figure 20:11 Experiment!
