我有一个小的热图,由pheatmap包创建。我想要水平和热图下方。或增加大小,以使图例与热图本身具有相同的高度。 但我似乎找不到办法。
# Create test matrix
test = matrix(rnorm(16), 4, 4)
colnames(test) = paste("Test", 1:4, sep = "")
# Draw heatmaps
pheatmap::pheatmap(test, display_numbers = T, fontsize_number = 14, border_color = "white", na_col = "white", cellwidth = 60, cellheight = 60, angle_col=45, show_rownames = F, cluster_rows = F, cluster_cols = F)