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

specify cell color. #267

Open
shanshenbing opened this issue Dec 23, 2024 · 0 comments
Open

specify cell color. #267

shanshenbing opened this issue Dec 23, 2024 · 0 comments

Comments

@shanshenbing
Copy link

In seurat package, I can pot dimplot using:

DimPlot(object = sri,group.by = j,cols = mp_colors)

note: mp_colors is a named vector,like as:
MP_1 MP_2 MP_3 MP_4 MP_5 MP_6 MP_7
"#0073C2FF" "#EFC000FF" "#868686FF" "#CD534CFF" "#7AA6DCFF" "#003C67FF" "#8F7700FF"
MP_8 MP_9 Unassigned
"#3B3B3BFF" "#A73030FF" "#4A6990FF" .
The output plot is corrected colored by mp_colors. But in functions CellStatPlot, CellDimPlot do not corrected dealing with named color vec. I noted these functions called palette_scp to get colors and your plotting funciton did not using scale_color_manual or scale_fill_manual to specify colors. Hope replay and updates.

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