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,
  log2fc_cutoff = 1,
  p_cutoff = 0.05,
  p_col = "p_adj",
  up_color = "#D55E00",
  down_color = "#56B4E9",
  ...
)

Arguments

object

A glystats_limma_res object.

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" (raw p-values without multiple testing correction).

up_color

The color for up-regulated candidates. Defaults to "#FF7777".

down_color

The color for down-regulated candidates. Defaults to "#7DA8E6".

...

Other arguments passed to underlying functions.

Value

A ggplot object.