How to add annotation columns with specific colors to the heatmap?
0
0
Entering edit mode
17 months ago
ahmad mousavi ▴ 800

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 • 620 views
ADD COMMENT
0
Entering edit mode

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

ADD REPLY

Login before adding your answer.

Traffic: 1515 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6