Learn R Programming

enrichplot (version 1.13.1.994)

ridgeplot: ridgeplot

Description

ridgeline plot for GSEA result

Usage

ridgeplot(
  x,
  showCategory = 30,
  fill = "p.adjust",
  core_enrichment = TRUE,
  label_format = 30,
  ...
)

# S4 method for gseaResult ridgeplot( x, showCategory = 30, fill = "p.adjust", core_enrichment = TRUE, label_format = 30, ... )

ridgeplot.gseaResult( x, showCategory = 30, fill = "p.adjust", core_enrichment = TRUE, label_format = 30, orderBy = "NES", decreasing = FALSE )

Arguments

x

gseaResult object

showCategory

number of categories for plotting

fill

one of "pvalue", "p.adjust", "qvalue"

core_enrichment

whether only using core_enriched genes

label_format

a numeric value sets wrap length, alternatively a custom function to format axis labels.

...

additional parameters by default wraps names longer that 30 characters

orderBy

The order of the Y-axis

decreasing

logical. Should the orderBy order be increasing or decreasing?

Value

ggplot object

Examples

Run this code
# NOT RUN {
library(DOSE)
data(geneList)
x <- gseDO(geneList)
ridgeplot(x)
# }

Run the code above in your browser using DataLab