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.
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.
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.
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 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 .
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
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/
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
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.
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.
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?
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! :)
Thank you very much. Your tutorial is clear and easy to follow through
Glad it helped!
Thank you Rosane. Looking forward to a Four factor ☺️ Your approach to solve the problem.
The Tutorial was really helpful, great work!
Glad you liked it!
Great tutorial, as always!! Thanks so much!
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.
Very informative
hi! i am trying to ad error bars of mean and sd from data but could not find any result
very useful,thanks
Thanks Rosane, very useful indeed. Wondering how to change the order of the bars from major to minor?
Thank you☺
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.
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.
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
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"))
@@RosaneRech 😍👌 Thank you Rosane
@Rosane Rech could you please provide your email
@@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 .
Can I know how to overcome error bar overlapping when producing a stacked bar chart using R?
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
@@RosaneRech thank you .. waiting for the video 🙂
Thank you so much
You're most welcome :)
Thank you very much for this tutorial and can please make vedio on 3 factorial barplot.
Thanks in Advance
Sure, I will do it.
@@RosaneRech thank you very much, can i get your email ID.
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/
I feel the legend is somewhat redundant after you've integrated the legend's information within the plot.
You are right, the legend could be removed.
@@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.
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
Thanks for the suggestion, I will try to add it in some of my next videos.
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.
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.
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?
Hi, instead of 'position_dodge(0.90)' try 'position = position_dodge(0.90)'.
@@RosaneRech Thank you so much. Everything ok right now.
How to find the significance and plot the result of three factorial experiment?
Hello Endalew, take a look in the following tutorial: ua-cam.com/video/XHG6lbRzaWQ/v-deo.html
Hey, thank you!! By the way, você é brasileira?
Olá Milena, sim sou brasileira!