plot enrich result in bar plot
enhance_barplot(
data,
showCategory = 10,
by = "Count",
split = NULL,
order = FALSE,
drop = FALSE,
fillstrip = TRUE,
print = FALSE,
split_color = RColorBrewer::brewer.pal(3, "Dark2"),
bar_color = rev(RColorBrewer::brewer.pal(5, "GnBu")[3:5])
)
'enrichResult' object, enrichGO result
Category numbers to show
one of Count and GeneRatio
separate result by 'split' variable
logical
logical
fill strip rect or not
logic for print plot
color for CC, MF, and BP
color for bar
ggplot or grid plot
if (FALSE) {
test <- enrich_go(deg_data = DEG_df, x = "log2FoldChange", y = "pvalue")
enhance_barplot(test$Down,showCategory=10,split = "ONTOLOGY")
enhance_barplot(test$Down,showCategory=30)
}