Skip to contents

Standard significance annotation layer for PaperPlotR comparison plots

Usage

layer_signif_paper(
  data,
  x,
  y,
  comparisons,
  paired = FALSE,
  id = NULL,
  test = NULL,
  log_scale = FALSE,
  line_width = 0.35,
  text_size = 3.2,
  colour = "#1F1F1F"
)

Arguments

data

Data frame used for comparisons.

x

Grouping column.

y

Numeric response column.

comparisons

List of two-element character vectors.

paired

Whether to run paired Wilcoxon tests.

id

Optional sample id column required for paired tests.

test

Statistical test name. Only "wilcox" is supported in v1.

log_scale

Whether the plot uses a log-scaled y axis.

line_width

Bracket line width.

text_size

Annotation text size.

colour

Bracket and text colour.

Value

A ggplot layer or list of layers.