In this tutorial I show you how to create Boxplots in R with geom_boxplot() and ggplot().
You can download the R code from this video here: https://www.skool.com/data-analysis-with-r-6607/classroom/daa88316?md=1213bcd67e104eb88b1a58073b5445cb
The examples are based in the R-Graph Gallery. I show how boxplots can be used to visualize multiple different distributions at once. I will also walk you through many different parameters and function arguments that allow you to customize your boxplots in many ways.
⏱ Time Stamps ⌚
0:00 - Intro and video overview
1:31 - Boxplot theory and outlier rule
5:30 - Basic boxplots with geom_boxplot()
6:40 - Function arguments and notching
8:50 - Change the colors of boxplots
9:57 - Highlight a single boxplot
10:54 - Grouping boxplots
12:08 - Adding the average with stat_summary()
12:55 - Adding points with geom_jitter and geom_dotplot
14:06 - Adding boxplots in the margins of a scatterplot
14:36 - Final example and outro animation
External Links:
https://www.r-graph-gallery.com/boxplot.html
https://www.data-to-viz.com/caveat/boxplot.html
Background Music:
https://youtu.be/CRqt2QS8oZw
Outro Animation:
AA-VFX Motion Backgrounds
https://youtu.be/8S7XAlvSidc