Comments (4)
After installing the latest developmental version (devtools::install_github("kassambara/ggpubr")
), type this:
df <- ToothGrowth
df$dose <- factor(df$dose)
comparisons <- list(
c("0.5", "1"), c("1", "2"),
c("0.5", "2")
)
symnum.args <- list(
cutpoints = c(0, 0.0001, 0.001, 0.01, 0.05, 1),
symbols = c("xxxx", "***", "**", "*", "ns")
)
ggplot(df, aes(dose, len)) +
geom_boxplot()+
stat_compare_means(
comparisons = comparisons,
label = "p.signif",
symnum.args = symnum.args
)
The output should look like this:
from ggpubr.
Hi,
In the current version the function stat_compare_means() don't support the argument map_signif_level. I'll work on that.
Thanks
from ggpubr.
As far as I can tell, the significance symbols are still hard coded into stat_compare_means(). Any movement on this? I'd love to be able to control the asterisks on my graphs.
from ggpubr.
See for a solution: https://stackoverflow.com/questions/47839988/indicating-significance-with-ggplot2-in-a-boxplot-with-multiple-groups
from ggpubr.
Related Issues (20)
- ggsummarytable text angle option not available?
- change font in ggtexttable HOT 1
- The dot-dot notation (`..density..`) was deprecated in ggplot2 3.4.0.
- Add observation number in ggboxplot or similar functions?
- Error R2 with stat_cor function
- the order of category in x-axis is not correspond to figure label HOT 1
- ggbreak and ggpubr ggarrange do not play nicely together
- How to show the result of compare_means() in the stat_compare_means()
- Discrepancies between Wilcoxon test in `ggpubr` and `rstatix`? HOT 1
- Error in `*tmp*`[[1]] : subscript out of bounds
- Parsing of newline in facets HOT 1
- geom_pwc() with emmeans_test method
- Unnecessary legend problem when applying stat_summary
- Cannot fill symbols in geom_points with fill ="group"
- How to set transparency for barplot?
- BUG of geom_pwc(): the use of symnum.args leads to Error in `fortify()
- Manual p-value adjustment in geom_pwc
- ggboxplot warning The `fun.y` `fun.ymin` `fun.ymax` argument of `stat_summary()` is deprecated as of ggplot2 3.3.0.
- How to remove black dots of outliers HOT 1
- how to use position_dodge() in ggboxplot
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ggpubr.