View source: R/enrichment_barplot.R
enrichment_barplot | R Documentation |
Enrichment bar plot with two directions
enrichment_barplot(
up_terms,
down_terms,
terms = "Description",
pvalue = "pvalue",
group = "group",
palette = "jama",
title = "Gene Ontology Enrichment",
width_wrap = 30,
font_terms = 15
)
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. |
Dongqiang Zeng
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.