Skip to contents

Visualization for results from glystats::gly_limma() (glystats_limma_res objects). Only 2-group comparison is supported, and a volcano plot is drawn.

Usage

# S3 method for class 'glystats_limma_res'
autoplot(
  object,
  contrast = NULL,
  log2fc_cutoff = 1,
  p_cutoff = 0.05,
  p_col = "p_adj",
  ...
)

Arguments

object

A glystats_limma_res object.

contrast

A character string specifying the contrast to plot, in the format of "group1_vs_group2". Must be one of the contrasts in the result. When there is only one contrast (two-group comparison), it can be NULL (default).

log2fc_cutoff

The log2 fold change cutoff. Defaults to 1.

p_cutoff

The p-value cutoff. Defaults to 0.05.

p_col

The column name for p-value. Defaults to "p_adj". Can also be "p_val" (raw p-values without multiple testing correction).

...

Other arguments passed to underlying functions.

Value

A ggplot object.