how to sort y-axis category of GO result
0
0
Entering edit mode
Yang • 0
@6064fd3a
Last seen 3 months 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",
#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 • 268 views
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.