mitch icon indicating copy to clipboard operation
mitch copied to clipboard

Create a bubble plot for unidimensional analysis

Open markziemann opened this issue 4 years ago • 1 comments

here is some working code

library(ggplot2)
top <- head(res_eff$enrichment_result,50)
top <- top[order(top$s.dist),]
top$set <- factor(top$set, levels = top$set[order(top$s.dist)])
ggplot(top, aes(s.dist, set, size = setSize)) + geom_point(aes(colour=-log10(top$p.adjustANOVA)))

markziemann avatar Apr 20 '21 04:04 markziemann

mitch_bubbleplot <- function(res,n) { top <- head(res$enrichment_result,n) top <- top[order(top$s.dist),] top$set <- factor(top$set, levels = top$set[order(top$s.dist)]) ggplot(top, aes(s.dist, set, size = setSize)) + geom_point(aes(colour=-log10(top$p.adjustANOVA))) }

markziemann avatar May 20 '21 02:05 markziemann