clusterProfiler icon indicating copy to clipboard operation
clusterProfiler copied to clipboard

Customize barplot(ggo,...) bar order by count number

Open yl-jia opened this issue 5 years ago • 2 comments

Dear Professor YU,

Now, I am using your clusterProfiler, it is really a fantastic one comparing to all I used.

I wonder if it's possible to change the bar order by decreasing gene count number, when using function barplot(ggo,drop=T,showCategory=20). There are too many terms in my GO analysis, I want only to show the first 20 GO terms with the biggest number.

Thank you for your time, if any convenience.

Best regards, Yunlong JIA

yl-jia avatar Mar 14 '19 15:03 yl-jia

Have you found the answer? I want to change the order of category of y-axis

perla008 avatar Oct 09 '21 16:10 perla008

To order the barplot based on gene counts use order = TRUE.

arupgsh avatar Mar 02 '22 10:03 arupgsh