Skip to contents

Visualization for results from glystats::gly_enrich_go(), glystats::gly_enrich_kegg(), and glystats::gly_enrich_reactome() (glystats_go_ora_res, glystats_kegg_ora_res, and glystats_reactome_ora_res objects). Possible types of plots:

  • "dotplot" (default): Dotplot showing p-value, gene counts, and gene ratios.

  • "barplot": Barplot showing p-values and gene counts.

  • "network": Network plot showing terms and their relationships.

Usage

# S3 method for class 'glystats_go_ora_res'
autoplot(object, type = "dotplot", ...)

# S3 method for class 'glystats_kegg_ora_res'
autoplot(object, type = "dotplot", ...)

# S3 method for class 'glystats_reactome_ora_res'
autoplot(object, type = "dotplot", ...)

Arguments

object

A glystats_go_ora_res, glystats_kegg_ora_res, or glystats_reactome_ora_res object.

type

The type of plot, one of "dotplot" (default), "barplot", or "network".

...

Other arguments passed to underlying functions (enrichplot::dotplot() for "dotplot", enrichplot::barplot.enrichResult() for "barplot", and enrichplot::emapplot() for "network")

Value

A ggplot object.