ggplot_annotate_signif: Extract p-values from a result list.

Description Usage Arguments Value

Description

Convenience function for extracting p-values from result lists as returned by test_wilcoxon_for_groups or test_friedman. The result is vector with the group names as names and can be used by ggplot_annotate_signif.

Usage

1
2
3
ggplot_annotate_signif(data, x, y, p_values, label = "stars",
  margin = 1, static_y = TRUE, steps = eenv_signif_steps,
  font_face = "plain", font_size = eenv_theme[[1]]$text$size)

Arguments

data

A tibble containing the data.

x

The column used for the x-axis.

y

The column used for the y-axis.

p_values

A vector containing p-values, the name marks the corresponding x.

label

Either "stars" or "p-values".

margin

The distance above the highest y at x in units of y.

static_y

Use the maximum y + margin for all x.

steps

If label is "stars" add an "*" for each step teh p_value is below.

font_face

The font face used for the labels ("plain"|"bold"|"italic"| "bold.italic")

font_size

The font size in points.

Value

list


randomchars42/eenv documentation built on May 20, 2019, 1:29 p.m.