Barplots for the Results of a Three-Factor Experiment

Поделиться
HTML-код
  • Опубликовано: 7 авг 2024
  • R code: statdoe.com/barplots-for-thre...
    This video presents a suggestion on how to present the results of a three-factor experiment using bar plots.
    The code can be accessed at: statdoe.com/barplots-for-thre...
    R packages: ggplot2, ggthemes, dplyr, multcompview, egg
    R functions: aov, TukeyHSD, mlupcompLetters4, group_by, summarise, arrange, ggplot, geom_bar, geom_errorbar, xlab, ylab, expression, theme_few, legend.position, legend.title, facet_grid, geom_text, tag_facet, tag_pool .
    www.statdoe.com
  • НаукаНаука

Комментарии • 25

  • @KN-tx7sd
    @KN-tx7sd 2 года назад +3

    Thank you Rosane, can I request if you could kindly put a demo to show ANOVA for grouped bar plots in R with statistical significance displayed as either numerical or as asterisks above the grouped bars with error bars.

  • @Marie2303able
    @Marie2303able Год назад

    Thank you!! It's really helpful!

  • @Esther-kz9xc
    @Esther-kz9xc 3 года назад +1

    Thank you very much !

  • @fendocu2148
    @fendocu2148 Год назад

    Thanks for your good tutorial.

  • @urleyadrianperez7497
    @urleyadrianperez7497 Год назад

    Hi, Rosane thank you very much for the video. I would like to know if you know how I can put the letters of the Tukey or LSD test horizontally because in my bar chart, there are many letters and they do not look good. Thank you very much

  • @maxadmalik
    @maxadmalik 2 года назад

    Hi Rosane, Thank you so much for sharing such an informative course. I am facing the following error in code. (Error in comp[[i]] : subscript out of bounds) will you suggest me something to overcome it.

  • @hebertopolancoortega6585
    @hebertopolancoortega6585 5 месяцев назад

    I need to label y axis with "Regeneration percentage (%)" but in the code I can't write % because shows me an error. How can I put % in y axis? 🙏🏽

  • @iot3136
    @iot3136 3 года назад +3

    Awesome 🤩 Thank you Rosane. Looking forward to learning what is your approach for 4 independent variables and 1DV, 4 way anova. At the moment I am following your DoE course at Udemy.

    • @RosaneRech
      @RosaneRech  3 года назад +1

      Very good to know you've enrolled in the course! You are going to find the approach for four factors in sections 6 and 7 in the course. Let me know if you have questions or if there is some missing topics.

    • @iot3136
      @iot3136 3 года назад

      @@RosaneRech Thank you Rosane. Course is comprehensive and informative. Thank you for your great effort for compiling this. With reference to lessons 48 to 51; Suppose if there is a interaction among T,P,C,ω; I’m interested to know how I could visualize 4 factors in One graph. Do I have to go for facet wrap? Then I feel it’d be harder for reader to get an idea at once and would have to go through each combinations.

    • @RosaneRech
      @RosaneRech  3 года назад +1

      @@iot3136 Hi. After I have answered here, I've realised that in the end, the course example has three factors. I am preparing a tutorial on four factors, but you are right: the idea is to facet_grid, splitting it horizontally by one variable, vertically by the other variable, one as colour and one as x-axis.

    • @iot3136
      @iot3136 3 года назад

      @@RosaneRech Thank you Rosane. Looking forward to the tutorial soon ☺️. You are amazing.
      Btw, may I suggest you to create another udemy course for understanding fundamentals of statistics with R. Then parametric and non parametric statistics. I am sure you will do it elegantly.

    • @RosaneRech
      @RosaneRech  3 года назад

      @@iot3136 Thanks for the suggestion! I will keep it in mind.

  • @endalewassefa8872
    @endalewassefa8872 3 года назад

    Thank you for this interesting video.
    1. When I run : summary(anova), the rrror is say: Error in (function (classes, fdef, mtable) :
    unable to find an inherited method for function ‘Summary’ for signature ‘"aov"’
    2 when i run print(dt), the warning message is say:
    `...` is not empty.
    We detected these problematic arguments:
    * `needs_dots`
    These dots only exist to allow future extensions and should be empty.
    Did you misspecify an argument?
    3. When I run the ggplot(GTL2, aes-----
    the error says; Don't know how to automatically pick scale for object of type function. Defaulting to continuous.
    Error in (function (..., row.names = NULL, check.rows = FALSE, check.names = TRUE, :
    arguments imply differing number of rows: 84, 0
    Could you help me to fix the above errors?
    thank you.

    • @RosaneRech
      @RosaneRech  3 года назад

      Hi Endalew,
      You can check and copy the code in the following link: statdoe.com/barplots-for-three-factors/

  • @danielhagos235
    @danielhagos235 11 месяцев назад +1

    Best video

  • @tchistermorrelebissa8628
    @tchistermorrelebissa8628 Год назад

    Complex for beginners. Could you start with for exmple one factor, two factors,...from raw data, eg., freh weigh, dry weight and total weight of plants or animals something like that

    • @RosaneRech
      @RosaneRech  Год назад

      Hi, please see the tutorials for bar plots for one or two factors:
      Bar plot for one factor: ruclips.net/video/NoRmd0HVgDg/видео.html
      Bar plot for two factors: ruclips.net/video/BAIMrhZWLe4/видео.html

  • @nicolaseldecorador3046
    @nicolaseldecorador3046 3 года назад +1

    Great video, thanks. I tried it, by trying use standart error as limitations for errorbars and it did not work out. can you maybe tell me how to change the code so it will show se insted of sd? regards

    • @RosaneRech
      @RosaneRech  3 года назад +1

      Hi Nicolas, you need to calculate the se: 'se = sd/sqrt(n)' ; n is the number of observations that you get with the code n = n()

    • @alessand22
      @alessand22 3 года назад

      @@RosaneRech could it be like this?
      dt %
      summarise(uptake_mean=mean(uptake),
      sd=sd(uptake),
      se = sd(uptake)/sqrt(n())) %>%
      arrange(desc(uptake_mean))

    • @RosaneRech
      @RosaneRech  3 года назад

      @@alessand22 Yes, exactly like this!