Skip to content

specify cell color. #267

Open
Open
@shanshenbing

Description

@shanshenbing

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions