R 热图周围的奇怪边框

Strange border around R heatmap

提问人:TheLaw 提问时间:10/19/2023 更新时间:10/19/2023 访问量:28

问:

这是我的代码: data_subset <- df[, c(“pSent”, “pReturned”, “age”)]

correlation_matrix <- cor(data_subset, use = “pairwise.complete.obs”)

pheatmap(correlation_matrix, color = colorRampPalette(c(“blue”, “white”, “red”))(100), display_numbers = T, number_color = “white”, fontsize_number = 10, annotation_colors = list(numbers = list(fontfamily = “Arial”)), border_color = “white”)

创建热图后,它如下所示: 在此处输入图像描述

如何去除边框?

border_color = NA 或边框 = NA 未按预期工作

R 边界 热图

评论

1赞 Allan Cameron 10/19/2023
您看到的“奇怪边界”似乎是集群注释。添加参数,如果您不需要它们。cluster_rows = FALSEcluster_cols = FALSE

答: 暂无答案