extract_stats: Extracting dataframes with statistical details from...

Description Usage Arguments Details Value Examples

View source: R/extract_stats.R

Description

Extracting dataframes with statistical details from {ggstatsplot}

Usage

1

Arguments

p

A plot from {ggstatsplot} package

...

Ignored

Details

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

Value

A list of tibbles containing statistical analysis summaries.

Examples

 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))
}

ggstatsplot documentation built on Jan. 15, 2022, 1:08 a.m.