dotplot {enrichplot}R Documentation

dotplot

Description

dotplot for enrichment result

Usage

dotplot(object, ...)

## S4 method for signature 'enrichResult'
dotplot(
  object,
  x = "GeneRatio",
  color = "p.adjust",
  showCategory = 10,
  size = NULL,
  split = NULL,
  font.size = 12,
  title = "",
  label_format = 30,
  ...
)

## S4 method for signature 'gseaResult'
dotplot(
  object,
  x = "GeneRatio",
  color = "p.adjust",
  showCategory = 10,
  size = NULL,
  split = NULL,
  font.size = 12,
  title = "",
  label_format = 30,
  ...
)

Arguments

object

input object

...

additional parameters

x

variable for x-axis, one of 'GeneRatio' or 'Count'

color

variable that used to color enriched terms, e.g. pvalue, p.adjust or qvalue

showCategory

number of enriched terms to display

size

variable that used to scale the sizes of categories

split

separate result by 'category' variable

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

Value

plot

Author(s)

guangchuang yu

Examples

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

[Package enrichplot version 1.10.2 Index]