View source: R/Visualization_enrichBar.R
enrichBar | R Documentation |
enrich bar plot
enrichBar(
enrichResult,
top = 10,
group = "ONTOLOGY",
space = 0.9,
order_by = "pvalue",
FDR = "qvalue",
bar = "logP",
bar_size = 2,
point = "gr",
point_shape = 21,
point_size = 2.5,
point_color = c("#de2d26", "#fc9272", "#fee0d2"),
bar_color = rev(RColorBrewer::brewer.pal(5, "GnBu")[3:5]),
group_color = RColorBrewer::brewer.pal(3, "Dark2"),
group_names = c("Biological Process", "Cellular Component", "Molecular Function"),
group_color_name = c("BP", "CC", "MF"),
group_title = "ONTOLOGY",
bar_title = "Qvalue",
point_title = "GeneRatio",
x_title = "-log10(pvalue)",
y_title = "Description",
plot_title = NULL,
legend_text_size = 12,
FDR_color = c("#de2d26", "#fc9272", "#fee0d2")
)
enrichResult |
a |
top |
number of top categories to show |
group |
which column used to split group |
space |
space for text |
order_by |
order by which column, default is pvalue |
FDR |
pvalue or qvalue |
bar |
which column to plot bar, default is 'logP' |
bar_size |
size of bar |
point |
which column to plot point, default is 'gr' |
point_shape |
shape of point |
point_size |
size of point |
point_color |
color of point |
bar_color |
color of bar |
group_color |
color of group |
group_names |
label of group |
group_color_name |
color label of group |
group_title |
title label of group |
bar_title |
title of bar |
point_title |
title of point |
x_title |
title of x axis |
y_title |
title of y axis |
plot_title |
title of point |
legend_text_size |
size of legend text |
FDR_color |
color of FDR |
a ggplot
enrichBar(enrichResult)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.