Open olechnwin opened 1 year ago
I think you need to manually check how many groups are there in your data.
col.partition=c("group1" = "red", "group2" = "blue")
Then in EnrichedHeatmap()
:
anno_enriched(gp = gpar(col = col.partition[unique(as.vector(partition))]))
I think you need to manually check how many groups are there in your data.
col.partition=c("group1" = "red", "group2" = "blue")
Then in
EnrichedHeatmap()
:anno_enriched(gp = gpar(col = col.partition[unique(as.vector(partition))]))
I'll do that. Thank you!
Hi, I am wondering if there is a way to tie the anno_enriched color to the row_split? For example, below if I set ngroup1 to 10, setting anno_enriched to the color of partition will correctly color the first group red.
However if there is no group 1, the color becomes red. I was expecting it to be blue for the group2. ngroup1=0![image](https://user-images.githubusercontent.com/20069067/191278049-8ce9c3d2-58b9-49d1-9674-91b4d5958f0c.png)
Thank you in advance for your help.