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

Any way to change legend order? #55

Closed
SimoniMD opened this issue Aug 19, 2022 · 1 comment
Closed

Any way to change legend order? #55

SimoniMD opened this issue Aug 19, 2022 · 1 comment

Comments

@SimoniMD
Copy link

So I have a UMAP that assigns colors based on cell size, and then I used scCustomize to make a clustered dotplot. However, i notice that the clustered Dotplot order is alphabetical. Any way to make it a custom order (but keep the associated colors), so that i can match my legends? I feel like I can do this in photoshop, but it would be tedious. I read in another thread that the clustered dotplot isn't ggplot? so not sure how to approach it.

I'm trying to match this order from my umap (made with dittoseq):
image

with this from the dotplot:
image

Thanks!

@samuel-marsh
Copy link
Owner

Hi @SimoniMD,

Sorry for delay getting to this. I have added fix in the develop branch v0.7.0.9935. Clustered_DotPlot now returns the legend using the factor levels from the active.ident in Seurat object. You can easily change the resulting plot by re-leveling the object.

If you run into any issues, let me know and I can reopen the issue.

Best,
Sam

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