plot_stats: Plot overlap statistics as a bar graph

plot_statsR Documentation

Plot overlap statistics as a bar graph

Description

Plot overlap statistics as a bar graph

Usage

plot_stats(stats, value, color, sort_y = FALSE)

Arguments

stats

value from compute

value

"#gene sets", "# genes", "# matches", "P-value", "Adjusted P-value", "Odds Ratio", "Fold Enrichment" or "Adjusted Fold Enrichment"

color

"#gene sets", "# genes", "# matches", "P-value", "Adjusted P-value", "Odds Ratio", "Fold Enrichment" or "Adjusted Fold Enrichment"

sort_y

whether to sort annotations by value

Value

ggplot2: bar chart of statistics

Examples

anno <- E.PATH::annotations
data <- E.PATH::database

input <- process_input_text("FCN1 0.1 FTL 0.8 CLU 0.05")
results <- compute(input, anno, data)
stat <- plot_stats(results$stats, 'Fold Enrichment', 'Adjusted P-value')

AhmedMehdiLab/E.PAGE documentation built on Aug. 21, 2022, 4:37 p.m.