barplotEnrich {eegc} | R Documentation

## Barplot the enrichResult

### Description

This function is revised from the `barplot.enrichResult` function DOSE package, and used to perform a barplot of the enrichResult object.

### Usage

    barplotEnrich(height, x = "Count", colorBy = "p.adjust", top = 5,
    font.size = 12, title = "", color = NULL,...)

### Arguments

`height` | enrichResult object, alternatively output from `functionEnrich` function.
`x` | one of "Count" and "GeneRatio" to specify the x axis.
`colorBy` | one of 'pvalue', 'p.adjust', 'qvalue'.
`top` | number of top categories to show.
`font.size, title` | font size and title.
`color` | the color of the bar.
`...` | see parameters in `fortify` function.

### Value

bar plot of enrichment results

### Examples

    ## Not run:
      # plot the "enrichResult" of Inactive category
      inactive = goenrichraw[[2]]
      barplotEnrich(inactive, top =5, color ="#2c7bb6", title = "Inactive")

    ## End(Not run)

[Package eegc version 1.12.0 Index]