Great video! Would love to see the same but with a grouped boxplot to show how to add pvalues of within and between group comparisons :)
@ecomattp3 жыл бұрын
Thanks for the feedback! I will see about making that video soon :)
@christiakai9341 Жыл бұрын
great video! could this be done with the bootstrap method? Also instead of numbers, how can you add asterisks?
@ecomattp Жыл бұрын
Hello! To answer your second question, yes you can. In the line stat_compare_means you would need to add annotations=*** to your specific list of what you want to compare. This link should provide further detail! stackoverflow.com/questions/49008460/add-p-value-or-asterisk-to-ggplot As far as using a bootstrap method, I have not done that myself, but that's not to say it is not possible. Here is a pdf of a document I found that may be useful: pages.stat.wisc.edu/~larget/stat302/chap3.pdf I hope this helps!
@bacdesilva9 ай бұрын
Nice video. But how to get the significant letter grouping and show them on the boxplot?
@ecomattp8 ай бұрын
Hello! To get you an answer sooner than later check this video out: kzbin.info/www/bejne/i6rSl2aJZsyraa8 they do a good job explaining this exact item of interest. I hope this helps!
@bacdesilva8 ай бұрын
@@ecomattp Thank you. This is very helpful.
@galan8115 Жыл бұрын
Is it there a way of making all comparisons instead of just Control vs the rest?
@ecomattp Жыл бұрын
Sorry for the late response! Good question. If you wanted to compare everything I would recommend an ANOVA (analysis of variance) which will compare everything. However, I just did control to each different treatment in this video to demonstrate customizable comparisons. Therefore, if you wanted to make other types of comparisons like I did in this video, the process is the same as shown, you would just need to create the list of comparisons you want to display.
@DrAjayKHarit2 жыл бұрын
I and unable to put compare lines on box plot and showing the error ....error in stat_compare_means(comparisons = my_comparisons, method = "wilcox.test") : could not find function "stat_compare_means". Please let me know how to solve it
@ecomattp2 жыл бұрын
These are all of the standard packages I use: (ggpubr is crucial for this method) library(ggpubr) library(ggplot2) library(dplyr) library(tidyr) library(permute) library(lattice) library(vegan) library(goeveg) library(tidyverse) library(nlme) library(ordinal) library(multcompView) library(ggthemes) check to see if you have these installed! If that doesn't work, here's a website that breaks down the same process: www.sthda.com/english/articles/24-ggpubr-publication-ready-plots/76-add-p-values-and-significance-levels-to-ggplots/
@plantgenetics64052 жыл бұрын
The video quality is very poor. I can barely see anything
@ecomattp Жыл бұрын
Hi, thanks for pointing this out, not sure why the beginning is like this, but around 1:15 it improves on my end! Hopefully that is the case for you as well.