Bar charts and Histograms using ggplot in R

  Рет қаралды 71,965

R Programming 101

R Programming 101

Күн бұрын

To create a bar chart or histogram using ggplot is easy. Bar charts (or bar graphs) are used to visualise a single categorical variable. Histograms are used to visualise a single numeric variable. Ggplot2 is a powerful package used for data visualisation in R programming. So if you're into data science, statistics or any other quantitative analysis and you're learning to use R, then I recommend that you learn ggplot. This is part of the series: R programming for beginners. ggplot is sometimes referred to as ggplot2

Пікірлер: 82
@RProgramming101
@RProgramming101 Жыл бұрын
Get my FREE cheat sheets for R programming and statistics (including transcripts of these lessons) here: www.learnmore365.com/courses/rprogramming-resource-library
@ManuelSchmitz-h4g
@ManuelSchmitz-h4g 25 күн бұрын
This tutorial has encouraged me to continue working with R. I was getting a bit frustrated with other tutorials. Thank you very much!
@RProgramming101
@RProgramming101 24 күн бұрын
Great to hear! Thanks for the feedback
@chihotdog1554
@chihotdog1554 28 күн бұрын
Wow, when this guy talks, I listen. Why? Because I can understand what is talking about. This is the difference between teaching and just talking to people. He is a legend, IMO. As a student, I have a job to do: “learn R and statistics.” This guy is for sure helping me get that job in an enjoyable way. Thank you, and keep it coming. Don't change your approach.
@RProgramming101
@RProgramming101 27 күн бұрын
Thanks so much for the lovely comment and feedback 😀
@chihotdog1554
@chihotdog1554 26 күн бұрын
@ Any plans on doing anything on Monnte Carlo simulation? It's a bit advanced, I know, but I thought I'd put it out there
@meronghirmay4960
@meronghirmay4960 2 жыл бұрын
Frankly, one of the best tutorials for R. Thank you for making Visualization with R very easy.
@RProgramming101
@RProgramming101 2 жыл бұрын
Wow - what a nice thing to say (thanks!!)
@FitnessAndLifeWithLaShelle
@FitnessAndLifeWithLaShelle 2 жыл бұрын
You've answered 50 questions that were floating around in my head in the first 6mins of the video! God bless!
@RProgramming101
@RProgramming101 2 жыл бұрын
Most welcome! Glad you liked it!
@jacoposangiovanni
@jacoposangiovanni 6 ай бұрын
I have no words, these lessons get better and better from one another. The way you explain every concept, and the way in which you remark every important information is simply astonishing. I'm learning my way in R and ggplot at a surprising speed all thanks to you. Again, no words. Keep up and thank you for your work.
@RProgramming101
@RProgramming101 6 ай бұрын
thank you so much for the lovely feedback - MUCH appreciated :)
@StockSpotlightPodcast
@StockSpotlightPodcast 3 жыл бұрын
Incredible intro! Keep the videos coming and would love to see more videos on organizing the bars by frequency since that is typically how senior management wants to see the data visualized
@kumarsatyam1173
@kumarsatyam1173 3 жыл бұрын
Amazing videos on ggplot. I really love the passion with which you teach. Goes to show how much you enjoy this!
@darkguy9644
@darkguy9644 3 ай бұрын
just in 2 days, he made me a R master. Thanks Greg
@RProgramming101
@RProgramming101 Ай бұрын
Am so glad you like the content. :)
@V39167
@V39167 3 жыл бұрын
This is so so helpful, I wasn't aware of being careful about which NAs I'm dropping. I got introduced to the pipe operator in some of your previous videos and I'm just loving it!! I agree that it's really nice to use the pipe operator with ggplot. Thanks for the great videos!!
@AmerikiDork
@AmerikiDork 3 жыл бұрын
I love these videos. This makes R seem very intuitive and user friendly.
@LiahBrussolo
@LiahBrussolo 3 жыл бұрын
Very clear explanation of the meaning of each bit of code, thank you!
@bping123
@bping123 3 жыл бұрын
Thanks Greg - just subscribed. Hopefully we will have a steady stream of content as you are an excellent educator!
@RProgramming101
@RProgramming101 3 жыл бұрын
Welcome aboard!
@lukeskinner6877
@lukeskinner6877 3 жыл бұрын
Thank you for these videos they are very well explained at a great pace, please keep making more!
@RProgramming101
@RProgramming101 3 жыл бұрын
More to come!
@tbaerg
@tbaerg 3 жыл бұрын
fantastic video. I'm quite guilty of being over enthusiastic with my drop_na; so this was a great reminder. Kudos!
@carmenwhitehouse9825
@carmenwhitehouse9825 2 жыл бұрын
Fantastic videos, you have made my life a lot easier. Could you perhaps create a video on how to create contingency tables, unless I have missed it. We use them quite often in epidemiology.
@RProgramming101
@RProgramming101 2 жыл бұрын
Great suggestion - thank you!!
@faisala.alghazwi8502
@faisala.alghazwi8502 3 жыл бұрын
I think it's time for me to get back and learn R. you sure seem to explain well for beginners. Subscribed
@吴建-i5y
@吴建-i5y 3 жыл бұрын
Awesome looking forward to more videos thanks a lot
@fridab6082
@fridab6082 3 жыл бұрын
your videos are so useful for getting started! thank you!!
@Pontustilrem
@Pontustilrem 3 жыл бұрын
Thanks for a great lesson. Any possibility of showing how to extract data for doing a chisquare test in R?
@mibo747
@mibo747 3 жыл бұрын
Many thanks for IDEAL presentation
@bkarim7349
@bkarim7349 3 жыл бұрын
Thanks Greg - I really appreciate your videos. very good content and excellent presentation. good contunation
@sajedehrastgoo2142
@sajedehrastgoo2142 3 жыл бұрын
great and useful video on ggplot. thanks a lot.
@JoseGonzalezUwU
@JoseGonzalezUwU 3 жыл бұрын
Muy buen video me encanto, explicas las cosas de una manera tan sencilla, un saludo desde Argentina
@patrickrankin184
@patrickrankin184 Жыл бұрын
Thank you for all the great videos
@RProgramming101
@RProgramming101 Жыл бұрын
I'm glad you enjoyed the video! Your positive feedback means a lot to me.
@lindasturm-flores6752
@lindasturm-flores6752 3 жыл бұрын
Thanks for another good lesson in R. I would like to see a video on ANOVA in R. Thanks again!
@RProgramming101
@RProgramming101 3 жыл бұрын
Coming soon!
@lindasturm-flores6752
@lindasturm-flores6752 3 жыл бұрын
@@RProgramming101 Yay! Thank you
@sammytw1129
@sammytw1129 3 жыл бұрын
thanks. you made it a lot easier.
@RProgramming101
@RProgramming101 3 жыл бұрын
Glad it helped!
@mariapapanikolaou7038
@mariapapanikolaou7038 3 жыл бұрын
You're great and inspiring!! You help a lot! But... could you please tell what code I should add so that the number of cases in the y axis is not presented in scientific form?
@skyxu8634
@skyxu8634 3 жыл бұрын
this video is help for me!! I'm a year 3 unverisity students, this semester I have a data analysis course and that was really hard for me. looking for video about using R to inference the data~ Thanks!!
@poonamsingh312
@poonamsingh312 3 жыл бұрын
This is very helpful video. Thank you !!
@lupaitaliana
@lupaitaliana Жыл бұрын
Very nice video! I have a question about the dependent variable. Which one is automatically chosen by gglpot for this data frame? There is no specification of the y ais, so I wonder how can I get ggplot to select the “right one”.
@araque9789
@araque9789 2 жыл бұрын
INCREDIBLE VIDEOS!!!! AMAZING
@RProgramming101
@RProgramming101 2 жыл бұрын
Glad you liked it!
@parkjiji6701
@parkjiji6701 3 жыл бұрын
thank u for this video, it's really helpful waiting for u're news video
@RProgramming101
@RProgramming101 3 жыл бұрын
So nice of you
@JoshGuilbert
@JoshGuilbert Жыл бұрын
Is there a way easy way to pool count data by week but label by month? So if count data of the number of red cars seen in a parking lot each day, the plot you end up with is 56 bars, each bar is a 7 days but the tick marks at the bottom are for the start of each month.
@gsbarlow4
@gsbarlow4 Жыл бұрын
Do you have a video on a Pareto Chart already?
@veroniquemigue7985
@veroniquemigue7985 3 жыл бұрын
Thank you Greg!
@RProgramming101
@RProgramming101 3 жыл бұрын
My pleasure!
@石矻
@石矻 2 жыл бұрын
how to plot bar and scatter in the one pictrue?
@ninafulep4707
@ninafulep4707 2 жыл бұрын
great video! how do you reorder the order of the barchart?
@bangsdidik123
@bangsdidik123 3 жыл бұрын
Superb
@Николай-щ2ц7з
@Николай-щ2ц7з 3 жыл бұрын
Will you talk about spatial analysis?
@TheMISBlog
@TheMISBlog 3 жыл бұрын
Very Useful, Thanks
@RProgramming101
@RProgramming101 3 жыл бұрын
You are welcome
@Trafficfromsky
@Trafficfromsky 3 жыл бұрын
Great content
@minhashussain7722
@minhashussain7722 2 жыл бұрын
In my laptop the piped in %>% function can't work. Error: unexpected SPECIAL in "%>%" comes always
@karmawangmo6157
@karmawangmo6157 2 жыл бұрын
The video is great. Do you have video on GLMM? Will be great to have as I am a beginner
@RProgramming101
@RProgramming101 2 жыл бұрын
Will see what I can do.
@missbeekay9938
@missbeekay9938 3 жыл бұрын
I wish you could help me right now. This R Studio is tough!
@SamadAli-rf1un
@SamadAli-rf1un 3 жыл бұрын
Thanks Greg for the amazing video on ggplot in R Studio, I likes to know can i pass multiple variables in drop_na like drop_na(vore, sleep_rm) or do i have to use %>% and then use drop_na(sleep_rm) in next line. also likes to know that ggplot() is a function from tidyverse package and ggplot2 is a pakcage in tidyverse.
@alifarooq1464
@alifarooq1464 Жыл бұрын
ggsave doesn't work now, any solution
@rodolfodelgadillocastaneda9722
@rodolfodelgadillocastaneda9722 3 жыл бұрын
EXCELENTE , ME GUSTARÍA QUE LO HICIERAS USANDO ANOVA …… MUCHAS GRACIAS POR LA APORTACIÓN
@me_shristythapa5667
@me_shristythapa5667 Жыл бұрын
histogram 12:22
@madwilli3205
@madwilli3205 2 жыл бұрын
For some reason I don't get the scale on the y axis, I double checked my code and it looks like I included everything. But anyway thanks for these videos, feel like I am getting the hang of it little by little.
@hirashahzad2816
@hirashahzad2816 3 жыл бұрын
please make a video on ChAMP: 450k Chip Analysis Methylation Pipeline
@gustavkrogsbygaard3254
@gustavkrogsbygaard3254 3 жыл бұрын
I might have missed something, but it looks like you're plotting the hours 'awake' and calling that axis 'Total sleep'. What am I missing, or did you perhaps mistake the two?
@gustavkrogsbygaard3254
@gustavkrogsbygaard3254 3 жыл бұрын
If I were to be cheeky, I'd say you might have needed a bit more sleep! But your videos are great, thanks a lot.
@shivmanidubey3119
@shivmanidubey3119 3 жыл бұрын
please please make some more videos on statistics using ggplot2!!!!
@RProgramming101
@RProgramming101 3 жыл бұрын
more coming
@H0tinNYC
@H0tinNYC 3 жыл бұрын
Awesome!
@RProgramming101
@RProgramming101 3 жыл бұрын
Thanks!
@kirghizcha
@kirghizcha 3 жыл бұрын
Greg martin ggplot 2 variables
@zephirinsomda473
@zephirinsomda473 2 жыл бұрын
Very good presentation. I would like to get some command that can allow us to get slide by slide using frequencies of two categorical variable. Thank ahead
@apdcarson4490
@apdcarson4490 2 жыл бұрын
i've been running the exact same code for 6 hours now, too many errors. Cant get past vore.
@oussamakherbouche6562
@oussamakherbouche6562 2 ай бұрын
Tony Soprano teaching
@RProgramming101
@RProgramming101 Ай бұрын
haha
@ilovezac_
@ilovezac_ 9 ай бұрын
You're the worst bro, i learnt nothing!!
Cheerleader Transformation That Left Everyone Speechless! #shorts
00:27
Fabiosa Best Lifehacks
Рет қаралды 16 МЛН
Manipulate your data.   Data wrangling.   R programmning for beginners.
29:59
R Programming 101
Рет қаралды 84 М.
Statistics made easy ! ! !   Learn about the t-test, the chi square test, the p value and more
12:50
Global Health with Greg Martin
Рет қаралды 2,2 МЛН
I Spent 100 Hours Inside The Pyramids!
21:43
MrBeast
Рет қаралды 15 МЛН
Matplotlib Tutorial 3   bar charts and histograms
11:20
sentdex
Рет қаралды 267 М.
Explore your data using R programming
25:39
R Programming 101
Рет қаралды 116 М.
All Machine Learning algorithms explained in 17 min
16:30
Infinite Codes
Рет қаралды 587 М.