Mismatch between group colour and label in paired data



When I am running example column paired data I.E concentration peak intensity. The edit label corresponds -1, -2, -3 as 1 and 1, 2, 3 as 0. But in dendrogram and heatmap it is showing opposite labels such as -1, -2, -3 as 0 in red. Please clarify which one to consider. It is important.