ggstatsplot (version 0.0.9)

subtitle_friedman_nonparametric: Making text subtitle for the Friedman Rank Sum Test (nonparametric ANOVA) (within-subjects designs).

Description

Making text subtitle for the Friedman Rank Sum Test (nonparametric ANOVA) (within-subjects designs).

Usage

subtitle_friedman_nonparametric(data, x, y, messages = TRUE, k = 2,
  ...)

Arguments

data

A dataframe (or a tibble) from which variables specified are to be taken. A matrix or tables will not be accepted.

x

The grouping variable from the dataframe data.

y

The response (a.k.a. outcome or dependent) variable from the dataframe data.

messages

Decides whether messages references, notes, and warnings are to be displayed (Default: TRUE).

k

Number of digits after decimal point (should be an integer) (Default: k = 2).

...

Additional arguments (ignored).

Examples

Run this code
# NOT RUN {
# setup
set.seed(123)
library(ggstatsplot)
library(jmv)
data("bugs", package = "jmv")

# converting to long format
data_bugs <- bugs %>%
  tibble::as_tibble(.) %>%
  tidyr::gather(., key, value, LDLF:HDHF)

# creating the subtitle
ggstatsplot::subtitle_friedman_nonparametric(
  data = data_bugs,
  x = key,
  y = value,
  k = 2
)
# }

Run the code above in your browser using DataLab