In this video, I will show you how to use facet_wrap or facet_grid to create multi-panel plots in R and ggplot.
You can download the R code from this video here: https://www.skool.com/data-analysis-with-r-6607/classroom/daa88316?md=fafca7ecf1984ef78c9eda2c945fc07c
Faceting plots can be very helpful to compare your data over different categories.
It can also help you to get a quick overview of your data across multiple variables if you use a special pivot longer trick.
⏱ Time Stamps ⌚
0:00 - Intro
1:20 - gapminder example
5:09 - facet_wrap arguments
9:35 - facet_grid
13:54 - pivot_longer trick
22:02 - ggarrange
External Links:
https://www.r-bloggers.com/2018/03/diamonds-and-faceting-are-a-data-scientists-best-friends/
https://www.r-bloggers.acom/2023/02/save-space-in-faceted-plots/