enrichPlot: Plots to visualize the enrichment analysis results

Description Usage Arguments Value Examples

View source: R/enrichPlot.R

Description

Generate three types of plots to visualize the enrichment analysis results from getEnrich function. The plots are an circular barplot, barplot and dotplot.

Usage

1
enrichPlot(res, showCategory = 10, type = "circle")

Arguments

res

A dataframe with getEnrich results.

showCategory

Number of enriched terms to display (default: 10).

type

Type of plot: circle, bar or dot (default: circle).

Value

Returns a circle, bar or dot plot of enrichment analysis results.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
# loading enrichdemo
data(enrichdemo)

# circle barplot
enrichPlot(res = enrichdemo$results, 
           showCategory = 10, 
           type = 'circle')

# barplot
enrichPlot(res = enrichdemo$results, 
           showCategory = 10, 
           type = 'bar')

# dotplot
enrichPlot(res = enrichdemo$results, 
           showCategory = 10, 
           type = 'dot')

CeTF documentation built on Nov. 25, 2020, 2 a.m.