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
You probably want
scale_color_continuous(limits=c(1e-04, 0.05))