plot_enrichment {MOFA2} | R Documentation

## Plot output of gene set Enrichment Analysis

### Description

Method to plot the results of the gene set Enrichment Analyisis

### Usage

    plot_enrichment(
      enrichment.results,
      factor,
      alpha = 0.1,
      max.pathways = 25,
      text_size = 1,
      dot_size = 5
    )

### Arguments

`enrichment.results` | output of run_enrichment function
`factor` | a string with the factor name or an integer with the factor index
`alpha` | p.value threshold to filter out gene sets
`max.pathways` | maximum number of enriched pathways to display
`text_size` | text size
`dot_size` | dot size

### Details

it requires `run_enrichment` to be run beforehand.

### Value

a `ggplot2` object

[Package MOFA2 version 1.4.0 Index]