mitch
mitch copied to clipboard
Create a bubble plot for unidimensional analysis
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)))
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))) }