Learn R Programming

CRMetrics (version 0.3.0)

addPlotStatsSamples: Add statistics to plot

Description

Use ggpubr to add statistics to samples or plot

Usage

addPlotStatsSamples(
  p,
  comp.group,
  metadata,
  h.adj = 0.05,
  exact = FALSE,
  second.comp.group
)

Value

ggplot2 object

Arguments

p

Plot to add statistics to.

comp.group

Comparison metric.

metadata

Metadata for samples.

h.adj

Position of statistics test p value as % of max(y) (default = 0.05).

exact

Whether to calculate exact p values (default = FALSE).

second.comp.group

Second comparison metric.