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

How to set up label.color with the same colors as the cluster colors? #7579

Closed
ondina-draia opened this issue Jul 18, 2023 · 1 comment
Closed

Comments

@ondina-draia
Copy link

Hello,

I want to show on my UMAP, using the DimPlot() function, the same colors on the text labels as the cluster colors. If I set up the same colors in the same order as the levels of my idents, the colors do not correspond at all, I guess the order in which the labels are organised inside the DimPlot() are not the same as the levels of the identities which are given for coloring the cells.

test

This is my code:
DimPlot(S2, label = T, repel = T, label.size = 5, pt.size = 1, label.box = F, label.color = list)

Is there a way to make the colors coincide?

Thank you!

@ondina-draia
Copy link
Author

Okay so I had a reply concerning this on Biostars. The problem is solved.

The only thing I would need now is adding a small black border around the text but I'll find eventually how to do it

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

1 participant