Publication-Quality Barplots for Two Factors with ggplot - Two-Way ANOVA with R - tutorial 3

Поділитися
Вставка
  • Опубліковано 15 гру 2024

КОМЕНТАРІ • 43

  • @ElowenFaye
    @ElowenFaye 2 роки тому +1

    Thank you so much for your efforts, Rosane! Your videos are a huge help for me in order to write my bachelor's thesis in psychology! :)

  • @agethananape1429
    @agethananape1429 3 роки тому +1

    Thank you very much. Your tutorial is clear and easy to follow through

  • @iot3136
    @iot3136 3 роки тому

    Thank you Rosane. Looking forward to a Four factor ☺️ Your approach to solve the problem.

  • @edwinmaingi5195
    @edwinmaingi5195 3 роки тому +1

    The Tutorial was really helpful, great work!

  •  3 роки тому +1

    Great tutorial, as always!! Thanks so much!

  • @rajendraregmi5407
    @rajendraregmi5407 Рік тому

    Thank you very much for the very informative video. If you transform data, we have to prepare the bar plot on real data so how can we add labels to the graph.

  • @ldsharma6546
    @ldsharma6546 5 місяців тому

    Very informative

  • @Aesthetics10000
    @Aesthetics10000 Рік тому

    hi! i am trying to ad error bars of mean and sd from data but could not find any result

  • @bkarim7349
    @bkarim7349 3 роки тому +1

    very useful,thanks

  • @kulwakan
    @kulwakan 2 роки тому

    Thanks Rosane, very useful indeed. Wondering how to change the order of the bars from major to minor?

  • @FATHIMAAbdulsalam-k6t
    @FATHIMAAbdulsalam-k6t 2 місяці тому

    Thank you☺

  • @t.n.strijker5114
    @t.n.strijker5114 3 роки тому

    Thank you very much for this helpful tutorial Dr. Rech. The lower-case letters compare [glass] within one specific [temperature]. Could you show how to run a second LSD-test and compare if the light output is significantly different *between* the temperatures for [1] specific glass type, with upper-case letters? (That would be instead of the legend uppercase A,B,C). In my case, I am looking at the concentration of anti-oxidants in 16 bell pepper cultivars, with a Treatment and a Control group. So I would like to see the significant differences between varieties for treatment and control separately, and also within the variety if the treatment significantly increased the level of anti-oxidants, like you already showed in this tutorial for temperature. Lastly, I have seen publications use (NS = not significant) written on top of the treatment and control bars for a variety where that was the case. Is this also possible in R? I'd appreciate any lead to achieve the above. Thanks in advance for your reply.

    • @RosaneRech
      @RosaneRech  3 роки тому +1

      Depending on the specifics of what you are trying to do, there are several ways of solving it.
      About the LSD-test, I don't believe there is a command to break the letters, I would guess you have to do it manually. The LSD is the same, you need only change the letters,. Then you can add a new column to your data with the specific information you would like to add (letters, NS, or a blank cell for nothing) and use the geom_text to add the information.

  • @achual1909
    @achual1909 3 роки тому

    Excellent video and good narration. Keep doing more videos. By the by can we change the text from Times New Roman fo Trebuchet M S. Thank you

    • @RosaneRech
      @RosaneRech  3 роки тому +1

      You can do it using the 'extrafont' package:
      install.packages("extrafont") # needs to be done once
      library(extrafont)
      font_import() # needs to be done once
      fonts() # shows the fonts available
      # in the ggplot code add the following line:
      theme(text=element_text(family="Trebuchet MS"))

    • @achual1909
      @achual1909 3 роки тому +1

      @@RosaneRech 😍👌 Thank you Rosane

    • @achual1909
      @achual1909 3 роки тому

      @Rosane Rech could you please provide your email

    • @RosaneRech
      @RosaneRech  3 роки тому

      @@achual1909 I am sorry, but to avoid spam and for security reasons, I will not type my email address. You can get it in the section About of the YT channel, or you can get the contact email in my website statdoe.com .

  • @Fly_maggot
    @Fly_maggot Рік тому

    Can I know how to overcome error bar overlapping when producing a stacked bar chart using R?

    • @RosaneRech
      @RosaneRech  Рік тому

      It's an interesting question. I will make a video about it...
      Meanwhile, check the following link, I believe it has what you need:
      stackoverflow.com/questions/58603380/how-to-organize-error-bars-to-relevant-bars-in-a-stacked-bar-plot-in-ggplot

    • @Fly_maggot
      @Fly_maggot Рік тому

      @@RosaneRech thank you .. waiting for the video 🙂

  • @kohinoorbegum2880
    @kohinoorbegum2880 Рік тому

    Thank you so much

  • @owaisaliwani9095
    @owaisaliwani9095 3 роки тому

    Thank you very much for this tutorial and can please make vedio on 3 factorial barplot.
    Thanks in Advance

    • @RosaneRech
      @RosaneRech  3 роки тому

      Sure, I will do it.

    • @owaisaliwani9095
      @owaisaliwani9095 3 роки тому

      @@RosaneRech thank you very much, can i get your email ID.

    • @RosaneRech
      @RosaneRech  3 роки тому

      For safety purposes, I am not typing the e-mail address here in the comments, but you can get my e-mail in the ABOUT section of the YT channel, or feel free to connect with me using LinkedIn www.linkedin.com/in/rosane-rech-0a185514a/

  • @VenSensei
    @VenSensei 3 роки тому +1

    I feel the legend is somewhat redundant after you've integrated the legend's information within the plot.

    • @RosaneRech
      @RosaneRech  3 роки тому

      You are right, the legend could be removed.

    • @VenSensei
      @VenSensei 3 роки тому +1

      @@RosaneRech I will concede that in some instances, redundancy may be helpful for those who are not familiar with a plot or the plot's topic.

  • @KN-tx7sd
    @KN-tx7sd 3 роки тому

    Can you please show how to add statistical significance within each group e.g., ANOVA/Kruskal Wallis test as either numerical or asterisk above each group. Thank you

    • @RosaneRech
      @RosaneRech  3 роки тому +1

      Thanks for the suggestion, I will try to add it in some of my next videos.

  • @gabrielapingarron8221
    @gabrielapingarron8221 3 роки тому

    Thank you very much! It's very clear tutorial, I spent so much time trying to do that before I found it! However, I would like to use boxplot instead, and when I plot the letters they are in the wrong order. Could you help me?
    Thank you.

    • @RosaneRech
      @RosaneRech  3 роки тому

      I am finishing a tutorial on box-plots. About the order, if you are building a table with the summarised data, it is essential to have the means arranged in decreasing order, because the letters are generated in decreasing order.

  • @endalewassefa8872
    @endalewassefa8872 3 роки тому

    Thank you for this interesting video. I have question. when add +geom_text(aes(label=Tukey),position_dodge(0.9), size = 3,
    vjust= -0.8, hjust= -0.5, color="gray25"), the error is like this, "Error: ggplot2 doesn't know how to deal with data of class PositionDodge/Position/ggproto". can you help me to correct it?

    • @RosaneRech
      @RosaneRech  3 роки тому +1

      Hi, instead of 'position_dodge(0.90)' try 'position = position_dodge(0.90)'.

    • @endalewassefa8872
      @endalewassefa8872 3 роки тому

      @@RosaneRech Thank you so much. Everything ok right now.

  • @endalewassefa8872
    @endalewassefa8872 3 роки тому

    How to find the significance and plot the result of three factorial experiment?

    • @RosaneRech
      @RosaneRech  3 роки тому

      Hello Endalew, take a look in the following tutorial: ua-cam.com/video/XHG6lbRzaWQ/v-deo.html

  • @milenaoliveira2626
    @milenaoliveira2626 3 роки тому

    Hey, thank you!! By the way, você é brasileira?

    • @RosaneRech
      @RosaneRech  3 роки тому

      Olá Milena, sim sou brasileira!