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 change the group color in collect_classes() heatmap #183

Open
Phoenix12580 opened this issue Mar 13, 2023 · 1 comment
Open

How to change the group color in collect_classes() heatmap #183

Phoenix12580 opened this issue Mar 13, 2023 · 1 comment

Comments

@Phoenix12580
Copy link

Phoenix12580 commented Mar 13, 2023

image
I want to change the color, what should I do? Could you give a sample ....? I try the anno_col, but nothing changed.
Thank you very much

@jokergoo
Copy link
Owner

jokergoo commented Apr 3, 2023

The global parameter color_set_2 controls class colors. You need to define a named vector of colors where names are 1,2,3....

cola_opt$color_set_2 = structure(2:10, names = 1:9) # assume you have less than 10 classes. 9 colors are enough.
# or in the newest version, names are automatically added
# cola_opt$color_set_2 = 2:10
collect_classes(golub_cola, k = 3)

image

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