Bar and Column Graphs in R (using ggplot2)

แชร์
ฝัง
  • เผยแพร่เมื่อ 8 ก.ค. 2024
  • This is the second lecture in the course 'Graphical and Visual Analysis in R' and guides you how to perform basic and complex bar charts in R using ggplot2. The time stamps for each section are:
    00:00 Introduction and Basic Bar Plot
    02:36 General Bar Plot
    05:12 Geom_col, and how it’s very similar to geom_bar()
    07:33 Tweaking your bar plot
    11:15 Adding Error Bars (geom_errorbar)

ความคิดเห็น • 15

  • @pandabareO_o
    @pandabareO_o 10 หลายเดือนก่อน

    this content makes me bananas
    in the good way

  • @brennan5331
    @brennan5331 3 ปีที่แล้ว +1

    Looks great my dude! Currently trying to figure out Python but when I get back around to exploring R more I can tell this will be great! Keep up the great work!

    • @peelingbackdata3907
      @peelingbackdata3907  3 ปีที่แล้ว +1

      Thank you so much! We will keep trying to improve things (like the audio quality) but I am really glad you are enjoying it so far!

  • @falayeadeyinka168
    @falayeadeyinka168 3 ปีที่แล้ว

    Thank you.It is rewarding watching your video and God bless you very richly.

  • @bepppi
    @bepppi 3 ปีที่แล้ว +2

    thank you so much

  • @oddsratio4070
    @oddsratio4070 2 ปีที่แล้ว

    Nice

  • @Khalid-tg1kf
    @Khalid-tg1kf 2 ปีที่แล้ว

    Thank you so much, could you send the csv file and code

  • @estevaoalvaro8231
    @estevaoalvaro8231 2 ปีที่แล้ว

    Hi guys,
    I am coding with R. My code worked untill yestarday.
    Today I'm getting the following error:
    "error in ggplot could not find function "ggplot"", please someone help me to fix this? Thanks a lot.

  • @vedikaskitchen4139
    @vedikaskitchen4139 3 ปีที่แล้ว

    Your content is good. Please post more videos on R concepts. It's a very good and coceptual video that helped me to clear my doubts and gain knowledge about the barplots.

    • @peelingbackdata3907
      @peelingbackdata3907  3 ปีที่แล้ว

      Thank you so much! That really means a lot. I keep meaning to post more videos, but hopefully I will find the motivation to post another one this week!

  • @delbroox
    @delbroox 2 ปีที่แล้ว

    I really don't get why when I use the fill=color, i get an error: Error in FUN(X[[i]], ...) : object 'colour' not found
    Also with a bigger dataset the y axis sets a maximum of 2000. So I don't see the full graph.

    • @peelingbackdata3907
      @peelingbackdata3907  2 ปีที่แล้ว +1

      Hey! I was able to replicate the error you got using the code "ggplot(diamonds) + geom_point(aes(fill = colour))", so I think you may have just spelt it as 'colour' rather than the american way which it is written in the dataset. This error can also happen if you don't call the dataset and write "ggplot() + geom_point(aes(fill = color))"
      For the second part of your question, I don't think I have ever noticed the y-axis setting a maximum. However, the axis limits can be changed by adding 'scale_y_continuous(limits = c(desired_minimum, desired_maximum))'. For example, you might add '+ scale_y_continuous(limits = c(0, 20000))' to your ggplot code.
      I hope this helps!

    • @delbroox
      @delbroox 2 ปีที่แล้ว

      @@peelingbackdata3907 thanks a lot! This helps