This is a test version of Biostars. For the public version, visit https://www.biostars.org.
cnetplot and barplot don't show top ranked GO enrichments.

Hi,

I plotted the cnet plot with enrichResult objects. Object 1 was my filtered data with absolute log2 fold change more than 1, and object 2 was my filtered data with absolute log2 fold change more than 1.5. My enriched results are more in object 1, which is expected because I have more genes. But they show me fewer results when I want to plot barplot and cnetplot. I don't know why.

Here is my code.

p_cnetplot <- cnetplot(ego, categorySize="count", showCategory = 10, foldChange=OE_foldchanges, layout = "kk", color_category='tan2', node_label = "all", cex_label_gene = 2, cex_label_category = 1.5, colorEdge = FALSE) p_cnetplot <- p_cnetplot + ggtitle(title_str) + theme(plot.title = element_text(hjust= 0.5, size = 30))
p_barplot <- barplot(ego, showCategory = 30, font.size = 20, label_format = 100, order = FALSE)

absolute log2 fold changes > 1.5

enter image description here

enter image description here

absolute log2 fold changes > 1

enter image description here

enter image description here

barplot goenrichment cnetplot

1 answer

Hello, I found there is no problen with cnetplot. It just shows the enriched pathways and it is correct. Thank you

Log in to answer this question.