Using ggplot to create bar charts for 2 categorical variables. R programming for beginners.

  Рет қаралды 88,372

R Programming 101

R Programming 101

Күн бұрын

Пікірлер: 84
@Ruostesieni
@Ruostesieni 3 жыл бұрын
Absolutely love these videos of yours! Keep it up! Wanted to change away from SPSS to R for my doctoral thesis and your videos have given me the motivation AND means to do it.
@kiwookkim_WookLab
@kiwookkim_WookLab 3 жыл бұрын
haha always love it when you end with "don't do drugs, don't ever change". Fantastic resource for R beginners like myself, thank you!
@RProgramming101
@RProgramming101 3 жыл бұрын
haha - glad you like it.. :)
@HomieCV
@HomieCV 3 жыл бұрын
Currently doing my Google data analytics certificate and I really enjoy adding to my knowledge with these videos. kuddos on your teaching abilities.
@saradhiananth1613
@saradhiananth1613 3 жыл бұрын
Bro, Is that analytics course free ?
@HomieCV
@HomieCV 3 жыл бұрын
@@saradhiananth1613 I payed for it. I was able to finish it in two months by committing to 5-6 hours a day. I heard there is financial aid available but I am not sure how that works.
@MrRubyElf
@MrRubyElf 2 жыл бұрын
Oh my god thank you so much, you have no idea how long I've been looking for how to separate the bars by different variables. You also made it clear what pipes are. Thank you!
@RProgramming101
@RProgramming101 Жыл бұрын
So glad it was helpful! Thanks and cheers :)
@moneeanalytics
@moneeanalytics 2 ай бұрын
I'm taking my Msc. Statistics and am glad for your R videos Very instrumental. Keep up Sir
@RProgramming101
@RProgramming101 Ай бұрын
Thanks :)
@perpetuankeseifiemor6475
@perpetuankeseifiemor6475 Жыл бұрын
Wow!!! Amazing video! R simplified!!! Am glad I came across this video! Makes R more interesting and understandable! Thank you so much!!🙏
@RProgramming101
@RProgramming101 Жыл бұрын
Glad you liked it!! Thanks!
@edongoogle8290
@edongoogle8290 3 жыл бұрын
My favourite channel! Please do an analysis of variance (ANOVA) test for three related data sets of different sizes, including numeric and categorical variables. That would be brilliant.
@deeptimittal6547
@deeptimittal6547 Жыл бұрын
Very nice explanation which is very easy to understand.
@ousmanelom6274
@ousmanelom6274 3 жыл бұрын
The best teacher in R with you it become easy
@RProgramming101
@RProgramming101 3 жыл бұрын
Thanks for the very kind comment
@daameya
@daameya 3 жыл бұрын
Excellent Video. It was very easy to understand and helpful to complete a class assignment. Big Thumps up.
@someone8116
@someone8116 2 жыл бұрын
Very informative video. Would suggest for a follow up video that includes adding error bars to the graph, as well as, significance indicators (previously calculated letters or asterisks) above each individual bar. This would be helpful in the cases where the is a single and 2 categorical variables.
@epeliloganimoce6651
@epeliloganimoce6651 3 жыл бұрын
Great explanation: short, succinct and intuitive
@RProgramming101
@RProgramming101 3 жыл бұрын
Thank you kindly!
@rileykent5670
@rileykent5670 2 ай бұрын
The jungle at the beginning is why I'm here!
@RProgramming101
@RProgramming101 Ай бұрын
haha - happy to have you here...
@scr7968
@scr7968 5 ай бұрын
Your videos are the best!
@theoshouse8215
@theoshouse8215 2 жыл бұрын
THANK YOU. really helpful for my poli sci project AND this is making me want to get into R for its own sake
@RProgramming101
@RProgramming101 2 жыл бұрын
You can do it! Glad it was helpful! Thank you :)
@dominiquebarrette9621
@dominiquebarrette9621 2 жыл бұрын
Really excellent communicator bravo and thank you so much
@RProgramming101
@RProgramming101 2 жыл бұрын
Thank you for the feedback, I really appreciate it!
@12fra12nk
@12fra12nk 2 жыл бұрын
Hi dear, i tryed for hours did something like that in some seconds of video you explained exactly what i whant. thank you
@RProgramming101
@RProgramming101 2 жыл бұрын
So glad to hear that! Thanks.
@bbluca94
@bbluca94 2 жыл бұрын
Amazing videos, keep up!
@RProgramming101
@RProgramming101 2 жыл бұрын
Thanks, will do!
@JosephSila-t2e
@JosephSila-t2e Жыл бұрын
I love this video.. Amazing!!
@leakopp6547
@leakopp6547 Жыл бұрын
the 1 minute gave me a lot of hope :D
@sushilojha5202
@sushilojha5202 3 жыл бұрын
Thank you for making R easy to use😊
@dr.pervaizahmaddar9662
@dr.pervaizahmaddar9662 4 ай бұрын
Thank you. How to add labels on top of each bar?
@Simba-The_Lion
@Simba-The_Lion 2 жыл бұрын
Learning a lot here feels easier and understandable.
@RProgramming101
@RProgramming101 2 жыл бұрын
Happy to help! Thank you for the feedback.
@GnarTank
@GnarTank Жыл бұрын
I made a bar chart today. Thank you
@RProgramming101
@RProgramming101 Жыл бұрын
Wonderful!
@harikathi2089
@harikathi2089 2 жыл бұрын
Super helpful! Thank you!
@RProgramming101
@RProgramming101 2 жыл бұрын
You're welcome! Glad you enjoyed it!
@ninafulep4707
@ninafulep4707 2 жыл бұрын
Amazing video! I don't know what I would've done without them, you make R actually fun! I was wondering, in which video do you talk about adding labels to amounts in a stacked barchart? thanks!
@theexpatteacher8255
@theexpatteacher8255 3 жыл бұрын
Thanks so much for an awesome video. I really like using the pipe operator which, as you said, cuts down on creating more objects. My code is cleaner now and easier to follow.
@RProgramming101
@RProgramming101 3 жыл бұрын
Agree... I LOVE %>%
@yogawithmichellejulie
@yogawithmichellejulie 2 жыл бұрын
Thank you so much for explaining everything so well! You're a real life-safer :)
@RProgramming101
@RProgramming101 2 жыл бұрын
Happy to help! Thank you :)
@abdulmusa6162
@abdulmusa6162 3 жыл бұрын
Awesome many thanks for the update
@RProgramming101
@RProgramming101 3 жыл бұрын
you are most welcome
@syedatasneemfatima7062
@syedatasneemfatima7062 3 жыл бұрын
Videos are great help ... thank you.
@rileykent5670
@rileykent5670 2 ай бұрын
I followed this step by step and ran the code but it came back with "error: object 'sex' not found". Any idea what went wrong for me?
@pukroy
@pukroy Жыл бұрын
I got a problem in this starwars dataset here it is library(tidyverse) > View(starwars) > starwars %>% + filter(hair_color == "black") | + filter(hair_color == "brown") %>% + drop_na(sex) %>% + + ggplot(aes(hair_color, fill = sex))+ + geom_bar(position = "dodge", + alpha= 0.5)+ + labs(x= "Hair Colour", + y= "Number", + title = "Hair color of star wars")+ + theme_bw() Error: object 'hair_color' not found #I don't know why "hair_color" can't find #may be its a big mistake by me #I have a big question please help
@Fly_maggot
@Fly_maggot Жыл бұрын
Can I know how to overcome error bar overlap when producing a stacked bar chart ?
@usleoru
@usleoru 2 жыл бұрын
Very nice!
@RProgramming101
@RProgramming101 2 жыл бұрын
Thanks for the feedback!!
@XploreBioinformatics
@XploreBioinformatics Жыл бұрын
Can you please show how to add labels to the bar when we use position = "fill"?
@andreferreira7873
@andreferreira7873 2 жыл бұрын
If I have data where the are 3 columns ( one is a factor and the other two are numeric values) can i do a bar chart with 2 categorical variables ? for example the x-variable is the name of people of the study and y-variable have the values of the other two colums which are the heights of two diferent years
@jalepezo
@jalepezo 3 жыл бұрын
thank you very much! precise and to the point
@tarkbugraasc2446
@tarkbugraasc2446 3 жыл бұрын
Can you explain the reason why nonlinear regression crashes due to the use of unreasonable initial guesses of coefficients?
@jababnamgay6366
@jababnamgay6366 3 жыл бұрын
My bar plot in ggplot shows NA although there in no NA or missing value in my data. How do I solve it sir
@zafarsongs
@zafarsongs Жыл бұрын
I need to understand basic the Name of my parameter Can i use " AD+CD-BD_love"???
@omerzahoorchughtai7089
@omerzahoorchughtai7089 3 жыл бұрын
I have to create a bar chart which shows cost of different machines per year.lets say the years are 2018,2019,2020. How can I plot the chart with the data available.
@ahmed007Jaber
@ahmed007Jaber 2 жыл бұрын
i have this set that has numeric variable and two categorical variables. I did everything fine except the legend is done in gradient colour fashion; scale of colour and values while it should be 2 categories either 0 or 1, any ideas? db %>% ggplot(aes(x = age, group= loan_default, fill = loan_default)) + + geom_boxplot(alpha=0.7)+facet_wrap(~ employment_type)+coord_flip()
@draprincesa01
@draprincesa01 2 жыл бұрын
same here ....it´s a factor !!! just put before your variable the word factor and perentesis for example for variable a und b db %>% filter(a %in% c('1','2','3')) %>% drop_na(b) %>% ggplot(aes(factor(b)))+ geom_bar(aes(fill=factor(b)),alpha=0.5)+ facet_wrap(~ a)+ theme_bw()+ theme(panel.grid.major=element_blank(), panel.grid.minor=element_blank(), legend.position='none')+ labs(title = 'titel', x='Transport', y='count')
@Levy957
@Levy957 2 жыл бұрын
love your content
@RProgramming101
@RProgramming101 2 жыл бұрын
Thank you!
@RProgramming101
@RProgramming101 3 ай бұрын
Get my FREE cheat sheets for R programming and statistics (including transcripts of these lessons) here: www.learnmore365.com/pages/membership-r-programming-data-visualization-and-research-methods
@kwetynasc4764
@kwetynasc4764 3 жыл бұрын
Great videos! Could you post tutorials on Inferential statistics and Biostatistics with R? Much appreciated!
@ricardoansantos
@ricardoansantos 3 жыл бұрын
Another fascinating video! One question, can we used ggplot to perform graphing that are usually embedded in other packages? For instance, the age modelling package Bacon?
@RProgramming101
@RProgramming101 3 жыл бұрын
Great question - I think so (but am now sure). Will see what I can find out)
@rajendraregmi5407
@rajendraregmi5407 Жыл бұрын
Hi I love your short and sweet videos, I am wondering how can I prepare Bar chart with more than one numerical variable?
@anisoleanime2568
@anisoleanime2568 3 жыл бұрын
Absolutely love the videos! How can I create a weekly schedule using ggplot2? Could you make a video on that?
@jerrynyameye1031
@jerrynyameye1031 3 жыл бұрын
My favourite teacher of all time...love you sir keep up the good work I have a question and that is how do you visualise your data after cleaning...? I filtered a datafram and use mutate function to add new row to the datafram After which I wanted to use ggplot2 to visualise my data but it throwed an error message saying object not found thus the new row I created not found
@splham
@splham 7 ай бұрын
how can i get a personal class from you?
@sitinabilah7954
@sitinabilah7954 2 жыл бұрын
Can u explain how to do Non MultiDimensional Scaling using R please.
@zhenhuahuang291
@zhenhuahuang291 3 жыл бұрын
Can you create one for ANN using R Keras?
@nurmuhammad2072
@nurmuhammad2072 2 жыл бұрын
Sir, would you please make a video on Chi-square test in R? Your videos surely helped me import dataset in R and do further analysis.
@RProgramming101
@RProgramming101 2 жыл бұрын
Hi Nur, Chi squared test in R video is to be published today. Hope all is well!
@DK-sm5wf
@DK-sm5wf 5 ай бұрын
the explanation in regrads to the equal signs threw ,e a bit off, ususally "=" means youa ssing a value, since you want to filter an assignment would be pointless hence you want to access the assigned value of said variable which you do with "==" but the logic in regards the what to do comes from the filter function, so attributing the "if" to the "==" may be not 100% correct as the actualy filtering happens through said function, you simply check the value with the "==" and decide according to the defined logic.
@StockSpotlightPodcast
@StockSpotlightPodcast 3 жыл бұрын
LEGEND
@Rehan1824
@Rehan1824 3 жыл бұрын
First one
@TheMagikG
@TheMagikG Жыл бұрын
Doesn't work...
@bijayamanandhar3890
@bijayamanandhar3890 Жыл бұрын
Hello, you should not use the noisy musical background in a short and important academic video, it spoils your presentation, please remove.
@aliqzakry834
@aliqzakry834 Жыл бұрын
Why are you always using tidyverse? It's so infuriating. I'm not here to learn tidyverse. I'm here to learn R
@Ben-fk1dl
@Ben-fk1dl Жыл бұрын
Bro what😂 you have to load in what codes you’re going to use and tidyverse is the most common
Bar charts and Histograms using ggplot in R
18:22
R Programming 101
Рет қаралды 70 М.
진짜✅ 아님 가짜❌???
0:21
승비니 Seungbini
Рет қаралды 10 МЛН
Andro, ELMAN, TONI, MONA - Зари (Official Music Video)
2:50
RAAVA MUSIC
Рет қаралды 2 МЛН
번쩍번쩍 거리는 입
0:32
승비니 Seungbini
Рет қаралды 182 МЛН
Bar Charts with {ggplot2}
13:38
yuzaR Data Science
Рет қаралды 7 М.
Bar Charts using ggplot geom_bar - R Lesson 16
9:11
CradleToGraveR
Рет қаралды 41 М.
Clean your data with R.   R programming for beginners.
27:31
R Programming 101
Рет қаралды 155 М.
Creating a stacked barchart in R with ggplot2 (CC102)
22:19
Riffomonas Project
Рет қаралды 34 М.
Barplot and column plot using R (ggplot)
13:03
BioinfQuests
Рет қаралды 28 М.