how to sort y-axis category of GO result
0
0
Entering edit mode
Yang • 0
@6064fd3a
Last seen 3.1 years ago
Hong Kong

I can't change the y-axis' category order of dotplot result, I don't know the default order of it. I've used ordrBy="x",orderBy="Count",orderBy="geneRatio" in dotplot() parameters, but nothing changed. Thank you very much!

#ego <- enrichGO(gene =gene_up,OrgDb=org.Hs.eg.db,ont = "all",
                pool = TRUE,readable = TRUE)
#barplot(ego,split="ONTOLOGY",showCategory = 20,order=T,title = "EnrichmentdownGO9")+facet_grid(ONTOLOGY~.,scale="free")

#dotplot(ego,orderBy="pvalue",title="GO9dotplot",split="ONTOLOGY",showCategory=10)+facet_grid(ONTOLOGY~.,scales = "free")
GO.db clusterProfiler dotplot barplot • 2.8k views
ADD COMMENT
0
Entering edit mode

I have found some laws of it. The y-axis GOterm of barplot is ordered by p.value, you can change it by "order=T",it can change the ordey by "Count". But I haven't found out the law of dotplot.

ADD REPLY

Login before adding your answer.

Traffic: 589 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