
Plot Enrichment Analysis Results
plot_enrich.RdDraw a enrichment analysis result plot. Currently supported data types:
glystats_go_ora_res: Result fromglystats::gly_enrich_go().glystats_kegg_ora_res: Result fromglystats::gly_enrich_kegg().glystats_reactome_ora_res: Result fromglystats::gly_enrich_reactome().glyexp_experiment: Experiment created byglyexp::experiment(). Enrichment analysis is first performed usingglystats::gly_enrich_go(),glystats::gly_enrich_kegg(), orglystats::gly_enrich_reactome(), then the result is plotted.
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:
"dotplot":
enrichplot::dotplot()"barplot":
enrichplot::barplot.enrichResult()"network":
enrichplot::emapplot()
- 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(), orglystats::gly_enrich_reactome().