Making Awesome Scatterplots with ggplot2 | Learn R
Jarad Niemi
#jaradniemi #learnr #ggplot2 #scatterplot
This video is an introduction to using the ggplot2 package within the R statistical software. I focus on the construction of scatterplots including color, shapes, jittering, dodging, improving labels and the legend, adding smooth or regression lines, updating the theme, using a logarithmic axis, and (at the very end) faceting.
R script: https://www.jarad.me/youtube/scripts/ggplot2.R
The Learn R series is intended to help people learn how to perform analyses in R and work with the RStudio environment. The series will include instruction on how to make graphics using ggplot2, perform statistical analyses including regression, and build interactive websites using shiny.
Learn R: https://www.youtube.com/playlist?list=PLFHD4aOUZFp1wYrk8AIW0LGL4f9lBg79B
R download: https://www.r-project.org/ RStudio download: https://www.rstudio.com/products/rstudio/download/
R logo (no changes made): https://www.r-project.org/logo/
Chapters 00:00 Introduction 00:31 Load tidyverse 01:25 ToothGrowth data set 03:20 Scatterplot 05:25 Color 06:15 Shape 07:08 Saving ggplot as an R object 08:11 Moving the legend 10:06 Jittering and dodging 13:45 Smoothing lines 15:42 Titles and labels 18:18 Logarithmic axes 19:11 Themes 19:39 All the code 20:21 Faceting ... https://www.youtube.com/watch?v=WF0gUJB0NMU
159928413 Bytes