-
Notifications
You must be signed in to change notification settings - Fork 893
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
How to Plot Multiple Modules onto one Violin Plot (VlnPlot()) #4551
Comments
While this is currently not supported, you can pull the values using > mydata <- FetchData(object = pbmc_small, vars = c('nCount_RNA', 'nFeature_RNA', 'ident'))
> mydata
nCount_RNA nFeature_RNA ident
ATGCCAGAACGACT 70 47 0
CATGGCCTGTGCAT 85 52 0
GAACCTGATGAACC 87 50 0
TGACTGGATTCTCA 127 56 0
AGTCAGACTGCACA 173 53 0 You would |
Thank you very much, @saketkc ! I think this is what you were saying I should do (but correct me if I am wrong):
Is there a way to have this plotted per cluster or is it only able to be compared to each other do you think? |
You would also need also |
Thank you so much again @saketkc! Due to my data having basically every cell in that
See this page for lots of customization tips: http://www.sthda.com/english/wiki/ggplot2-violin-plot-quick-start-guide-r-software-and-data-visualization Thanks again @saketkc and I hope this all helps someone else with their work! |
From #3521 I learned how to plot multiple genes onto one plot using AddModuleScore():
From this I am able to plot one module onto a single violin plot, with the x axis being separated by cluster. Is there a way to plot multiple modules on the same plot, and not just the two plots listed side by side.
For example, to have the x axis be this "TNBC_List1" and this "ER_List1"?
I tried a suggestion from this issue #3366 but unfortunately did not work (assuming I did this correctly), and just placed the two plots side by side instead of on one single plot:
Hopefully this makes sense, and thanks for reading!
The text was updated successfully, but these errors were encountered: