Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

barplot.enrichResult

barplot


Description

barplot of enrichResult

Usage

## S3 method for class 'enrichResult'
barplot(
  height,
  x = "Count",
  color = "p.adjust",
  showCategory = 8,
  font.size = 12,
  title = "",
  label_format = 30,
  ...
)

Arguments

height

enrichResult object

x

one of 'Count' and 'GeneRatio'

color

one of 'pvalue', 'p.adjust', 'qvalue'

showCategory

number of categories to show

font.size

font size

title

plot title

label_format

a numeric value sets wrap length, alternatively a custom function to format axis labels. by default wraps names longer that 30 characters

...

other parameter, ignored

Value

ggplot object

Examples

library(DOSE)
data(geneList)
de <- names(geneList)[1:100]
x <- enrichDO(de)
barplot(x)

enrichplot

Visualization of Functional Enrichment Result

v1.10.2
Artistic-2.0
Authors
Guangchuang Yu [aut, cre] (<https://orcid.org/0000-0002-6485-8781>), Erqiang Hu [ctb]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.