Bar charts and Histograms using ggplot in R

Sdílet
Vložit
  • čas přidán 14. 03. 2021
  • 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

Komentáře • 71

  • @RProgramming101
    @RProgramming101  Před 11 měsíci +1

    Get my FREE cheat sheets for R programming and statistics (including transcripts of these lessons) here: www.learnmore365.com/courses/rprogramming-resource-library

  • @meronghirmay4960
    @meronghirmay4960 Před rokem +5

    Frankly, one of the best tutorials for R. Thank you for making Visualization with R very easy.

  • @6toolbaseball
    @6toolbaseball Před 3 lety +9

    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

  • @V39167
    @V39167 Před 3 lety +1

    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!!

  • @kumarsatyam1173
    @kumarsatyam1173 Před 3 lety +6

    Amazing videos on ggplot. I really love the passion with which you teach. Goes to show how much you enjoy this!

  • @AmerikiDork
    @AmerikiDork Před 2 lety +2

    I love these videos. This makes R seem very intuitive and user friendly.

  • @LiahBrussolo
    @LiahBrussolo Před 3 lety +4

    Very clear explanation of the meaning of each bit of code, thank you!

  • @faisala.alghazwi8502
    @faisala.alghazwi8502 Před 3 lety

    I think it's time for me to get back and learn R. you sure seem to explain well for beginners. Subscribed

  • @FitnessAndLifeWithLaShelle

    You've answered 50 questions that were floating around in my head in the first 6mins of the video! God bless!

  • @tbaerg
    @tbaerg Před 2 lety +1

    fantastic video. I'm quite guilty of being over enthusiastic with my drop_na; so this was a great reminder. Kudos!

  • @bping123
    @bping123 Před 3 lety +3

    Thanks Greg - just subscribed. Hopefully we will have a steady stream of content as you are an excellent educator!

  • @user-fv7li9fx8l
    @user-fv7li9fx8l Před 3 lety +1

    Awesome looking forward to more videos thanks a lot

  • @lukeskinner6877
    @lukeskinner6877 Před 3 lety +2

    Thank you for these videos they are very well explained at a great pace, please keep making more!

  • @fridab6082
    @fridab6082 Před 3 lety

    your videos are so useful for getting started! thank you!!

  • @bkarim7349
    @bkarim7349 Před 2 lety

    Thanks Greg - I really appreciate your videos. very good content and excellent presentation. good contunation

  • @Pontustilrem
    @Pontustilrem Před 3 lety +3

    Thanks for a great lesson. Any possibility of showing how to extract data for doing a chisquare test in R?

  • @JoseGonzalezUwU
    @JoseGonzalezUwU Před 3 lety

    Muy buen video me encanto, explicas las cosas de una manera tan sencilla, un saludo desde Argentina

  • @mariapapanikolaou7038
    @mariapapanikolaou7038 Před 3 lety +1

    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?

  • @sajedehrastgoo2142
    @sajedehrastgoo2142 Před 2 lety

    great and useful video on ggplot. thanks a lot.

  • @mibo747
    @mibo747 Před 2 lety

    Many thanks for IDEAL presentation

  • @skyxu8634
    @skyxu8634 Před 3 lety

    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 Před 3 lety

    This is very helpful video. Thank you !!

  • @carmenwhitehouse9825
    @carmenwhitehouse9825 Před 2 lety +6

    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.

  • @user-jq8qj7vp6r
    @user-jq8qj7vp6r Před 9 měsíci

    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.

  • @ninafulep4707
    @ninafulep4707 Před rokem

    great video! how do you reorder the order of the barchart?

  • @patrickrankin184
    @patrickrankin184 Před rokem

    Thank you for all the great videos

    • @RProgramming101
      @RProgramming101  Před rokem

      I'm glad you enjoyed the video! Your positive feedback means a lot to me.

  • @user-cg8ey9rv4u
    @user-cg8ey9rv4u Před rokem

    how to plot bar and scatter in the one pictrue?

  • @minhashussain7722
    @minhashussain7722 Před 2 lety

    In my laptop the piped in %>% function can't work. Error: unexpected SPECIAL in "%>%" comes always

  • @SamadAli-rf1un
    @SamadAli-rf1un Před 2 lety

    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.

  • @gsbarlow4
    @gsbarlow4 Před 7 měsíci

    Do you have a video on a Pareto Chart already?

  • @lindasturm-flores6752
    @lindasturm-flores6752 Před 3 lety

    Thanks for another good lesson in R.
    I would like to see a video on ANOVA in R. Thanks again!

  • @hirashahzad2816
    @hirashahzad2816 Před 3 lety

    please make a video on ChAMP: 450k Chip Analysis Methylation Pipeline

  • @user-hu1sn5or7j
    @user-hu1sn5or7j Před 3 lety

    Will you talk about spatial analysis?

  • @missbeekay9938
    @missbeekay9938 Před 3 lety +1

    I wish you could help me right now. This R Studio is tough!

  • @alifarooq1464
    @alifarooq1464 Před rokem

    ggsave doesn't work now, any solution

  • @Trafficfromsky
    @Trafficfromsky Před 3 lety

    Great content

  • @madwilli3205
    @madwilli3205 Před rokem

    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.

  • @parkjiji6701
    @parkjiji6701 Před 3 lety

    thank u for this video, it's really helpful
    waiting for u're news video

  • @sammytw1129
    @sammytw1129 Před 2 lety +1

    thanks. you made it a lot easier.

  • @veroniquemigue7985
    @veroniquemigue7985 Před 3 lety

    Thank you Greg!

  • @bangsdidik123
    @bangsdidik123 Před 3 lety

    Superb

  • @rodolfodelgadillocastaneda9722

    EXCELENTE , ME GUSTARÍA QUE LO HICIERAS USANDO ANOVA …… MUCHAS GRACIAS POR LA APORTACIÓN

  • @araque9789
    @araque9789 Před rokem

    INCREDIBLE VIDEOS!!!! AMAZING

  • @TheMISBlog
    @TheMISBlog Před 3 lety

    Very Useful, Thanks

  • @gustavkrogsbygaard3254

    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 Před 3 lety

      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.

  • @karmawangmo6157
    @karmawangmo6157 Před 2 lety

    The video is great. Do you have video on GLMM? Will be great to have as I am a beginner

  • @H0tinNYC
    @H0tinNYC Před 3 lety

    Awesome!

  • @shivmanidubey3119
    @shivmanidubey3119 Před 3 lety

    please please make some more videos on statistics using ggplot2!!!!

  • @apdcarson4490
    @apdcarson4490 Před 2 lety

    i've been running the exact same code for 6 hours now, too many errors. Cant get past vore.

  • @me_shristythapa5667
    @me_shristythapa5667 Před rokem

    histogram 12:22

  • @kirghizcha
    @kirghizcha Před 2 lety

    Greg martin ggplot 2 variables

    • @zephirinsomda473
      @zephirinsomda473 Před 2 lety

      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

  • @ilovezac_
    @ilovezac_ Před 2 měsíci

    You're the worst bro, i learnt nothing!!

  • @lupaitaliana
    @lupaitaliana Před 5 měsíci

    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”.