Customizable pvalue scales in clusterprofiler
0
0
Entering edit mode
19 months ago

Hello

I used clusterprofiler for GO enrichment analysis. For each ontology, it gives plots with "different" p.adj scaling value. For BP ontology dot plot, padj value ranges from 0.001 to 0.01 . While for CC ontology, dotplot gives p.adj scale value from 0.01 to 0.03. Is it possible to draw multiple dotplot with same p.adj scale from clusterprofiler object. I tried xlim but it remove many rows containing geom_point.

g <- dotplot(k1_all , font.size = 7,  showCategory=sel[1:20])  +

+ facet_grid(rows = ONTOLOGY~.)  +  xlim(c(0.0001, 0.0491791))

Warning message: Removed 5 rows containing missing values (geom_point()).

Also tried to adjust p.adj values with scale_x_continuous. But no change in the output.

dotplot(k1_all , font.size = 7,  showCategory=sel[1:20])  + facet_grid(rows = ONTOLOGY~.)  +
  scale_x_continuous(breaks = seq(c(0.0001, 0.0491791)))

I would appreciate all the suggestions.

Thanks in advance

clusterprofiler • 788 views
ADD COMMENT
0
Entering edit mode

You probably want scale_color_continuous(limits=c(1e-04, 0.05))

ADD REPLY

Login before adding your answer.

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