Description Usage Arguments Details Value Examples
View source: R/extract_stats.R
Extracting dataframes with statistical details from {ggstatsplot}
1 | extract_stats(p, ...)
|
p |
A plot from |
... |
Ignored |
This is a convenience function to extract dataframes with statistical details
that are used to create expressions displayed in {ggstatsplot}
plots as
subtitle and/or as caption. Note that all of this analysis is carried out by
the {statsExpressions}
package.
For more details about underlying tests and effect size estimates, see the following vignette: https://indrajeetpatil.github.io/statsExpressions/articles/stats_details.html
A list of tibbles containing statistical analysis summaries.
1 2 3 4 5 6 7 8 9 10 11 | if (require("PMCMRplus")) {
set.seed(123)
library(ggstatsplot)
# in case of group comparisons
p <- ggbetweenstats(mtcars, cyl, mpg)
extract_stats(p)
# the exact details depend on the function
extract_stats(ggbarstats(mtcars, cyl, am))
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.