Use ggpubr to add statistics to samples or plot
addPlotStatsSamples(
p,
comp.group,
metadata,
h.adj = 0.05,
exact = FALSE,
second.comp.group
)
ggplot2 object
Plot to add statistics to.
Comparison metric.
Metadata for samples.
Position of statistics test p value as % of max(y) (default = 0.05).
Whether to calculate exact p values (default = FALSE).
Second comparison metric.