Entering edit mode
2.3 years ago
Fahmida Khanam
•
0
I have imported result from Fgsea in Excel below to create a bubble plot in R which looks like this:
I want to generate a generating bubble enrichment plot using ggplot from fgsea result. I wrote the code as follows:
bubble1 <- ggplot(a, aes(y = pathway, x = Condition, size = size)) + geom_point(aes(color = NES, size=size)) + scale_color_gradientn(colours = rainbow(5))
it does not show any error. but the result is as follows:
The plot was supposed to be something like this :
Except I have changed the parameter according to my need. Can someone help me in finding what is going wrong here?