Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

plotEnrichment ranks labels #58

Open
igordot opened this issue Dec 7, 2019 · 2 comments
Open

plotEnrichment ranks labels #58

igordot opened this issue Dec 7, 2019 · 2 comments

Comments

@igordot
Copy link

igordot commented Dec 7, 2019

Is it possible to add an option to add ranks labels to plotEnrichment()? Currently, it is not possible to determine the ranks order from the plot without some additional information. For example, if you are comparing KO to WT, it would be helpful add "KO" and "WT" to opposite ends of the X (ranks) axis.

Here is an example from limma::barcodeplot() to illustrate what I am trying convey:
image

If that is outside the scope of this package, do you have any suggestions on how to best add something like that with least interference with other elements?

@assaron
Copy link
Member

assaron commented Dec 9, 2019

Hi, it's a good question. I wasn't able to quickly find an easy way to do this. You can try to modify the plot yourself, as plotEnrichment function returns ggplot object.

@assaron
Copy link
Member

assaron commented Dec 12, 2019

Additionally, you can use fgsea::plotEnrichment function source code as a template, and make your own function.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants