Skip to content

Allow named color vectors to assign specific colors to specific categorical variables #161

@sfplab

Description

@sfplab

I have a hard time understanding how to assign colors to specific categorical variables in a palette used in add_tile(). Tidyheatmap appears to perform the hierarchical clustering first, then assigns colors based on the order of first appearance along the clustered tiles. But this makes it very difficult to re-use specific colors from one heatmap to the next. Would it be possible to just allow color vector names to specify the categorical variable encoded by the color? Thank you.

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