如何拆分热图

时间:2018-04-22 22:34:38

标签: r heatmap

我有以下数据框(放映):

Name Q E R
Z.   4 2 4
X.   1 3 1
C.   2 5 6




library(ComplexHeatmap)
library(circlize)

rnames <- Screening[,1]
mat_data <- data.matrix(Screening[,3:ncol(Screening)])
rownames(mat_data) <- rnames
mat2 = mat_data
mat2[1, 1] = 100000

mat2现在由num [1:63,1:4]

组成

我试过了:

Heatmap(mat2, col = colorRamp2(c(6, 3, 1, 0), c("red", "orange", "yellow", "#a6e8ed")),  cluster_rows = FALSE, cluster_columns = FALSE, heatmap_legend_param = list(title = "Inhibition"), column_names_side = "top", row_names_side = "left", row_names_gp = gpar(fontsize = 8), split = rep(c("A", "B", "C", "D"), 44, 50, 58, 63))

热图是正确的但未分割(切片,分割)。

1)如何在第44,50,58,63行拆分热图并将它们标记为A,B,C,D?

2)列名正确但垂直显示,如何让它们水平显示?

3)我想控制热图的方块的长度和宽度,并将其值(数字)放在其中的表中?

谢谢

0 个答案:

没有答案