如何在ComplexHeatmap中更改边框大小?
我可以通过设置heatmap_border = TRUE来添加边框。有没有办法改变大小/宽度?下图是具有不同边框大小的图形。内部边界看起来比热图边界更薄。
我使用的是R包ComplexHeatmap。
谢谢!

发布于 2021-03-03 14:55:25
Heatmap(as.matrix(snps.cor),name="snps1", cluster_rows = FALSE,cluster_columns = FALSE,show_row_dend=FALSE,
show_row_names = FALSE,
show_column_names = FALSE,
border = TRUE,column_split = split,row_split=split,
col = col_fun2,top_annotation = ha,
column_gap = unit(0, "mm"),row_gap = unit(0, "mm"))
# draw(ht, heatmap_legend_side = "bottom", annotation_legend_side = "bottom")
decorate_heatmap_body("snps1", slice = 12,column_slice = 4, {
grid.rect(gp = gpar(fill = "transparent", col = "black", lwd = 2))
})我发现我可以通过decorate_heatmap_body更改宽度。如果没有切片参数,则仅更改左上角切片的边框。我可以通过添加slice = 12,column_slice = 4来更改特定切片的边框。
如何更改整个热图的边框宽度?

https://stackoverflow.com/questions/66451826
复制相似问题