How to construct KEGG and GO visualization graph?
2
0
Entering edit mode
4.2 years ago

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.4k views
ADD COMMENT
0
Entering edit mode
4.1 years ago

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.

ADD COMMENT
0
Entering edit mode
4.1 years ago
Leite ★ 1.3k

Hey @nelsonv2709

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

Best Leite

ADD COMMENT

Login before adding your answer.

Traffic: 1744 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6