Comments (5)
Unfortunately, this is currently not possible and I am not sure if this will ever be supported since all expressions try to follow a specific template:
That said you can always adapt the returned expression to your need by deleting certain parts of the expression.
Maybe I can add an example to the documentation to show how to do this.
from statsexpressions.
Unfortunately, this is currently not possible and I am not sure if this will ever be supported since all expressions try to follow a specific template:
That said you can always adapt the returned expression to your need by deleting certain parts of the expression.
Maybe I can add an example to the documentation to show how to do this.
from statsexpressions.
Many thanks.
from statsexpressions.
Here is an example:
# setup
set.seed(123)
library(ggplot2)
library(statsExpressions)
# extracting detailed expression
(res_expr <- expr_anova_parametric(iris, Species, Sepal.Length, var.equal = TRUE))
#> paste(NULL, italic("F")["Fisher"], "(", "2", ",", "147", ") = ",
#> "119.26", ", ", italic("p"), " = ", "1.67e-31", ", ", widehat(omega["p"]^2),
#> " = ", "0.61", ", CI"["95%"], " [", "0.52", ", ", "0.68",
#> "]", ", ", italic("n")["obs"], " = ", 150L)
# adapting the details to your liking
ggplot(iris, aes(x = Species, y = Sepal.Length)) +
geom_boxplot() +
labs(subtitle = ggplot2::expr(paste(
NULL, italic("F"), "(", "2",
",", "147", ") = ", "119.26", ", ",
italic("p"), " = ", "1.67e-31"
)))
from statsexpressions.
Many thanks.
from statsexpressions.
Related Issues (20)
- Guidance for using statsExpressions to customize plots?
- In case of `NA`, show it in the label instead of a blank space
- revdep issues with insight HOT 1
- Use `safe_model_parameters()` in `tidy_model_parameters()` instead?
- Avoid duplicating examples
- Don't include CIs in `centrality_description()` by default
- Exact p-value calculation using Wilcoxon rank sum test HOT 1
- DRY test dataset
- Stop converting to factors
- Revep check failure for {insight} HOT 4
- i wonder if `pairwise_comparisons` can do Tukey's HSD? HOT 1
- Use `{roxyglobals}` HOT 1
- Rename `stats_type_switch()` to `extract_stats_type()`
- wilcoxon test default parameters modification HOT 1
- Fix failures on R-devel
- Necessity of patch-level version bumps in dependencies HOT 1
- Introduce parameters to pass extra arguments
- ggbarstats does not show subtitle when paired = TRUE (for more than two groups) HOT 4
- _performance_ revdep-check issues HOT 2
- Switch to MIT licence
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 statsexpressions.