Entering edit mode
21 hours ago
Sofia
•
0
Hi,
I'm having trouble with Sankey and dot plots. Could anyone help me with the R script to draw them?
Thank you
Hi,
I'm having trouble with Sankey and dot plots. Could anyone help me with the R script to draw them?
Thank you
Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
What is the problem, where is the code you are trying? Provide code, example data, expected output.
I agree with zx8754 you haven't indicated what the problem is. To me, the sankey looks reasonable given how much data you are trying to plot, as does the dot plot, though I don't know exactly what you are trying to show so it's hard to say if it's appropriate.
Hi,
This is the header of my data:
pathway GeneRatio FDR genesID count
In the genesID, I have a list of genes separated by two spaces.
This is my script and output
You still haven't elaborated on what your problem is. Are you trying to recreate the top image and the bottom is what you end up with?
I think both since this is
geom_alluvium
this might be for the sankeyThank you for your attention. Yes, the top is what I need and the bottom is my output after the script, using a table with pathway, GeneRatio, FDR, genesID, count as data.
Please add your dataframe that would be helpful for others to recreate the issue and use you code may be small subset of your data would be helpful
Hi, thank you for your attention. Here is my dataframe as you asked