Skip to contents

Draw a enrichment analysis result plot. Currently supported data types:

Usage

plot_enrich(x, type = "dotplot", ...)

# S3 method for class 'glystats_go_ora_res'
plot_enrich(x, type = "dotplot", ...)

# S3 method for class 'glystats_kegg_ora_res'
plot_enrich(x, type = "dotplot", ...)

# S3 method for class 'glystats_reactome_ora_res'
plot_enrich(x, type = "dotplot", ...)

# S3 method for class 'glyexp_experiment'
plot_enrich(x, type = "dotplot", enrich_type = "go", stats_args = list(), ...)

Arguments

x

An object to be plotted.

type

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

...

Additional arguments passed to underlying functions:

enrich_type

The type of enrichment analysis, one of "go" (default), "kegg", or "reactome".

stats_args

A list of keyword arguments to pass to glystats::gly_enrich_go(), glystats::gly_enrich_kegg(), or glystats::gly_enrich_reactome().

Value

A ggplot object.