How to create Multi-Panel plots in R with facet_wrap() and facet_grid()

  Рет қаралды 4,882

The Data Digest

The Data Digest

Күн бұрын

Пікірлер: 15
@TheDataDigest
@TheDataDigest Ай бұрын
You can download the R code from this video here in my free skool community: www.skool.com/data-analysis-with-r-6607/classroom/daa88316?md=fafca7ecf1984ef78c9eda2c945fc07c
Жыл бұрын
Great in-depth video, excellent content.
@TheDataDigest
@TheDataDigest Жыл бұрын
Thanks for watching, liking and commenting :) I wanted to include as much as possible without being to long or boring. Next video will be about pie charts.
@ignaciosanchez1983
@ignaciosanchez1983 Жыл бұрын
Great video! Keep going
@icefunkdark8555
@icefunkdark8555 Жыл бұрын
This video is so useful. Thank you so much for sharing :) Appreciate the content and time.
@TheDataDigest
@TheDataDigest Жыл бұрын
And thank you for taking the time to leave such a nice comment. It is really motivating for me, to see that other people find my content useful :)
@greenone9951
@greenone9951 Жыл бұрын
scale_x_reordered function seems useful
@GaboMoya
@GaboMoya Жыл бұрын
I have a question. How do u change the order of the desplay. The factet grid follows alphabetical order. But i need and special order. For example the order in min 7:09 its Africa, Americas, Asia, Europe. But what if u want Europe first?
@TheDataDigest
@TheDataDigest Жыл бұрын
You have to use the factor() function and provide a new order of the levels. For example like this: gapminder$continent2
@TheDataDigest
@TheDataDigest Жыл бұрын
Just for transparency: I orginally used "labels" but it has to be "levels" otherwise the Africa data just got re-labeld with Europe instead of ordering the levels new.
@TheDataDigest
@TheDataDigest Жыл бұрын
I have a dedicated video about reordering factors: kzbin.info/www/bejne/eZnLe4iEZq93gqs
@91lovemusic
@91lovemusic 3 ай бұрын
14:19 i still fail doing that chart 😅
@TheDataDigest
@TheDataDigest 3 ай бұрын
What error message are you getting? Did you load the tidytext package to have the reorder_within() function available?
@Zoyfad
@Zoyfad Жыл бұрын
thanks for the video:) btw dplyr::slice_ functions are nice diamonds %>% slice_sample(n = 5000)
@TheDataDigest
@TheDataDigest Жыл бұрын
Thanks for the feedback. Really great to have someone that posts some extra useful functions. I knew the slice() function and remember now using it in the past after arrange to only select the top 3 of something. But wasn't aware that there is slice_sample(). So thanks again :)
How to Create Pie Charts in R (6 easy ways)
19:13
The Data Digest
Рет қаралды 7 М.
How to Create Parallel Plots in R with geom_line() and ggparcoord()
15:09
Миллионер | 1 - серия
34:31
Million Show
Рет қаралды 2,5 МЛН
小蚂蚁会选到什么呢!#火影忍者 #佐助 #家庭
00:47
火影忍者一家
Рет қаралды 27 МЛН
🍉😋 #shorts
00:24
Денис Кукояка
Рет қаралды 4 МЛН
Stylizing the appearance of facet labels with ggplot2's facet_wrap (CC236)
23:38
Understand  annotate() to improve your plots | A ggplot2 Tutorial
15:39
R for the Rest of Us
Рет қаралды 2,6 М.
Advanced ggplot  - using facets
7:37
R Programming 101
Рет қаралды 9 М.
Principles of Beautiful Figures for Research Papers
1:01:14
ChuScience
Рет қаралды 52 М.
Bar Charts with {ggplot2}
13:38
yuzaR Data Science
Рет қаралды 6 М.
🚨 YOU'RE VISUALIZING YOUR DATA WRONG. And Here's Why...
17:11
Adam Finer - Learn BI Online
Рет қаралды 193 М.
How to Create Bubble Charts in R with geom_point() and scale_size()
18:46