Barplot for the enrichment terms
barPlot_enrich(
top_dat,
source = "Ont",
term_name = "Term",
nlog10P = "nlog10P",
bar_width = 0.8,
base_size = 20,
font_family = "serif",
cols = (ggthemes::canva_pal())(4)
)
a data frame with the information of enrichment terms
a string, the source of database.
a string, the name of y-axis.
a string, the colname in top_dat that represents the negative log10 p-values.
a positive real, the width of bars.
a positive real, the baseline text size in plot.
a string, the font.
a string vector, the used colors in plot.
return a ggplot object.