My codes:
heatmap.2(cor_r, cellnote = sym2, notecol = "black", key = T, keysize = 0.5, key.par = list, Rowv = as.dendrogram(hclust.signs), Colv = as.dendrogram(hclust.areas), trace = "none", margins = c(10,10), col = my_palette, breaks = col_breaks, lmat=rbind(4:3,2:1))
Two problems:
Though don't know why, "breaks = col_breaks" is the reason. Deleting this part will get everything right.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.