Deleted:I am facing a problem in generating bubble enrichment plot using ggplot from fgsea result
0
0
Entering edit mode
2.3 years ago

I have imported result from Fgsea in Excel below to create a bubble plot in R which looks like this:fgsea result overview

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: ggplot generated

The plot was supposed to be something like this : desired plot type

Except I have changed the parameter according to my need. Can someone help me in finding what is going wrong here?

ggplot2 fgsea bubble_enrichment • 590 views
ADD COMMENT
This thread is not open. No new answers may be added
Traffic: 1505 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