ggbar: barplot for Enrichment results

ggbar_internalR Documentation

barplot for Enrichment results

Description

barplot for Enrichment results

barplot for Enrichment result

Usage

ggbar_internal(
  resultFis,
  top = 50,
  pvalue = 0.05,
  order = FALSE,
  horiz = TRUE,
  low = "lightpink",
  high = "red",
  font.x = "bold",
  font.y = "bold",
  fontsize.x = 10,
  fontsize.y = 10,
  short = FALSE,
  fontsize.text = 3,
  angle = 75,
  padj = NULL,
  usePadj = TRUE,
  orderp = FALSE,
  filename = NULL,
  width = 10,
  height = 8
)

## S4 method for signature 'richResult'
ggbar(
  object,
  top = 50,
  pvalue = 0.05,
  padj = NULL,
  order = FALSE,
  usePadj = TRUE,
  fontsize.x = 10,
  fontsize.y = 10,
  short = FALSE,
  fontsize.text = 3,
  angle = 75,
  orderp = orderp,
  filename = NULL,
  width = 10,
  height = 8,
  horiz = TRUE,
  ...
)

## S4 method for signature 'data.frame'
ggbar(
  object,
  top = 50,
  pvalue = 0.05,
  padj = NULL,
  order = FALSE,
  usePadj = TRUE,
  fontsize.x = 10,
  fontsize.y = 10,
  short = FALSE,
  fontsize.text = 3,
  angle = 75,
  orderp = FALSE,
  filename = NULL,
  width = 10,
  height = 8,
  horiz = TRUE,
  ...
)

Arguments

top

number of terms you want to display,

pvalue

cutoff value of pvalue (if padj set as NULL)

order

order by Term or richFactor

horiz

horiz or not

low

low color

high

high color

font.x

font of x axis

fontsize.x

fontsize of x axis

fontsize.y

fontsize of y axis

short

automatic short name or not

padj

cutoff value of p adjust value

usePadj

use p adjust value as color or not (should use with padj)

orderp

order by p value(adjusted p value)

filename

figure output name

width

figure width

height

figure height

object

dataframe of enrichment results

alpha

transparency alpha

font

y font of y axis

font.size

font size for xlim or ylim

Author(s)

Kai Guo

Examples

## Not run: 
  hsako<-buildAnnot(species="human",keytype="SYMBOL",anntype = "KEGG")
  gene=sample(unique(hsako$GeneID),1000)
  res<-richKEGG(gene,kodata = hsako)
  ggbar(res)

## End(Not run)
## Not run: 
  hsako<-buildAnnot(species="human",keytype="SYMBOL",anntype = "KEGG")
  gene=sample(unique(hsako$GeneID),1000)
  res<-richKEGG(gene,kodata = hsako)
  ggbar(result(res))

## End(Not run)

hurlab/RichR documentation built on Feb. 5, 2024, 8:07 p.m.