简体   繁体   中英

heatmap.2 does not show the color key

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:

  1. No color key is shown.
  2. When I rerun the codes, RStudio is broken down.

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM