FastEnrichPlot: Fast way to draw enrich plot after clusterProfilter...

Description Usage Arguments Value Author(s) Examples

View source: R/BI_FastEnrichPlot.R

Description

Fast way to draw enrich plot after clusterProfilter enrichfunction

Usage

1
2
3
4
FastEnrichPlot(object, pvalueCutoff = NULL, qvalueCutoff = NULL,
  id.col = "Description", select = NULL,
  x.title = "Biological Process terms", y.title = "-log10(FDR)",
  size = 15, short.cutoff = 46, topshow = 10)

Arguments

object

result from enrichGO or enrichKEGG or gseGO or enrichKEGG

pvalueCutoff

p value cutoff

qvalueCutoff

q value cutoff

id.col

ID you want to show in final plot

select

if select = NULL,the number of topshow would be shown.If select != NULL,selected terms would be showed and thus topshow is not effecient.

x.title

the title of x axis

y.title

the title of y axis

size

the size of whole plot

short.cutoff

if the number of character of terms is larger than short.cutoff,it would automatically change row in the showed plot.Defaut is 46.If you don't want change-row,just set short.cutoff = Inf

topshow

the number of top iterms ordered by FDR you want to show.It works only select = NULL

Value

LuckyList Object

Author(s)

Weibin Huang<654751191@qq.com>

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
## This is a simulative process and available only with CORRECT VARIABLES
load("E:/iProjects/LM_WGCNA/data/LM_WGCNA_02A/rda/goList.rda")
object <- goList$GOEnrichment$BP
res_EP <- FastEnrichPlot(object = object,
                         pvalueCutoff = NULL,
                         qvalueCutoff = NULL,
                         id.col = "Description",
                         select = NULL,
                         x.title = "Biological Process terms",
                         y.title = "-log10(FDR)",
                         size = 15,
                         short.cutoff = 46,
                         topshow = 10)
win.graph(12,9);res_EP$Plot

pvalueCutoff = 0.05
qvalueCutoff = 0.05
select = res2$ID[1:10]
id.col = "Description"
x.title = "Biological Process terms"
y.title = "-log10(FDR)"

shijianasdf/BasicBioinformaticsAnalysisFromZhongShan documentation built on Jan. 3, 2020, 10:08 p.m.