enrichment_barplot: Enrichment bar plot with two directions

View source: R/enrichment_barplot.R

enrichment_barplotR Documentation

Enrichment bar plot with two directions

Description

Enrichment bar plot with two directions

Usage

enrichment_barplot(
  up_terms,
  down_terms,
  terms = "Description",
  pvalue = "pvalue",
  group = "group",
  palette = "jama",
  title = "Gene Ontology Enrichment",
  width_wrap = 30,
  font_terms = 15
)

Arguments

up_terms

A data frame containing the information for up-regulated terms

down_terms

A data frame containing the information for down-regulated terms or genes.

terms

The column name in the data frames that specifies the term or gene description. By default, it is set to "Description".

pvalue

The column name in the data frames that specifies the p-value. By default, it is set to "pvalue".

group

The column name in the data frames that specifies the group or condition. By default, it is set to "group". If this column is not present in the data frames, the function will automatically assign a group based on the up_terms and down_terms.

palette

The color palette to use for the barplot. By default, it is set to "jama".

title

The title for the barplot. By default, it is set to "Gene Ontology Enrichment".

width_wrap

The maximum width for wrapping the pathway names on the x-axis labels. By default, it is set to 30 characters.

font_terms

The font size for the x-axis and y-axis labels. By default, it is set to 15.

Author(s)

Dongqiang Zeng


IOBR/IOBR documentation built on April 4, 2024, 1:07 a.m.