This is a test version of Biostars. For the public version, visit https://www.biostars.org.
How to add annotation columns with specific colors to the heatmap?

Hello,

I wanted to create a heatmap with 4-5 annotation columns, the point is these annotations might have values 0 or 1 , like the uploaded image each column should have different color to the other.

for example column A1(1,1,1,0,0,1,1,0).

When the value is 1 it shows the color in the case of 0 it doesn't show anything. I have made the plot with ComplexHeatmap but the color is defined by a range.

enter image description here

r heatmap rna-seq

Show us your exact code - it is quite easy to tweak colors in ComplexHeatmap with the col= argument.

0 answers

No answers yet.

Log in to answer this question.