I am performing pathway and gene enrichment analysis and I would like to visualise the enrichment result obtained from enrichGO in a barplot. I used barplot() from the package DOSE, but it keeps returning the error: Error in barplot.default(......) : argument 2 matches multiple formal arguments.
Here is my code and some screenshot of the table I created with enrichGO (the enrichment result).
Thank you in advance!
barplot(red_selected, x = "Count", color = "p.adjust", showCategory = 10, font.size = 12, title = "Red Cluster", label_format = 30, horiz = TRUE )