This is a test version of Biostars. For the public version, visit https://www.biostars.org.
How to construct KEGG and GO visualization graph?

I tried to construct the horizontal barplot for the GO data. The plot was working but i have a few concerns which are mentioned below- 1. How to adjust the bar width? 2. How to adjust the text size, and it's all coming in the bold letter (using the following code)? 3. How to remove grid from the plot? 4. And how to construct the alternative scatter plot for KEGG and GO, which shows P-value, gene count and Rich factor?

Below I have given the code I have used for horizontal bar plot.

library(DOSE)
data(geneList)
de <- names(geneList)[abs(geneList) > 2]
edo <- enrichDGN(de)
data1 <-read.delim("Combined GO.txt", header = TRUE, sep = "\t")                 
library(enrichplot)
barplot(edo, showCategory=30)
kegg go

2 answers

It returns a ggplot object, so you can edit it as you would any ggplot object. You can easily find answers to each of your questions via google and taking advantage of ggplot's extensive documentation.

As for your last question, we need an example image to have any chance to help you.

Hey @nelsonv2709

I think you can find what you are looking for in this topic Dotplot for filtered pathways result

Best Leite

Log in to answer this question.