Learn R Programming

enrichplot (version 1.13.1.994)

goplot: goplot

Description

plot induced GO DAG of significant terms

Usage

goplot(
  x,
  showCategory = 10,
  color = "p.adjust",
  layout = "sugiyama",
  geom = "text",
  ...
)

# S4 method for enrichResult goplot( x, showCategory = 10, color = "p.adjust", layout = "sugiyama", geom = "text", ... )

# S4 method for gseaResult goplot( x, showCategory = 10, color = "p.adjust", layout = "sugiyama", geom = "text", ... )

goplot.enrichResult( x, showCategory = 10, color = "p.adjust", layout = "sugiyama", geom = "text", ... )

Arguments

x

enrichment result.

showCategory

number of enriched terms to display

color

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

layout

layout of the map

geom

label geom, one of 'label' or 'text'

...

additional parameter

Value

ggplot object

Examples

Run this code
# NOT RUN {
	library(clusterProfiler)
  data(geneList, package = "DOSE")
	de <- names(geneList)[1:100]
	yy <- enrichGO(de, 'org.Hs.eg.db', ont="BP", pvalueCutoff=0.01)
    goplot(yy)
    goplot(yy, showCategory = 5)
# }

Run the code above in your browser using DataLab