写在前面
这几天看到一直有人在重复这个图,之前看到过base plot的版本,看到过ggplot2的版本。这里就把之前使用complexheatmap绘制的版本也拿来和大家分享一下。
主要操作
加载包
注意:ComplexHeatmap包的安装需要安装github版本的。很多函数在bioconductor版本没有。
另外由于complexheatmap在绘制热图的时候,对于颜色的指定是需要用到circlize包的colorRamp2函数,所以需要提前加载。
library(ComplexHeatmap)<br>library(circlize)<br>Sys.setenv(LANGUAGE = "en") #显示英文报错信息<br>options(stringsAsFactors = FALSE) #禁止chr转成factor
输入文件
[TencentCloudSDKException] code:FailedOperation.ServiceIsolate message:service is stopped due to arrears, please recharge your account in Tencent Cloud requestId:a5e43c36-6839-4bbd-8f33-7fa8b5870ef8
[En]
[TencentCloudSDKException] code:FailedOperation.ServiceIsolate message:service is stopped due to arrears, please recharge your account in Tencent Cloud requestId:c4ddb463-5ac1-4403-8c0b-a4b9290e1b54
Original: https://blog.csdn.net/weixin_42529148/article/details/112649974
Author: 一车一人一旅行
Title: 聚类热图分类注释_complexHeatmap版本的对角线热图
原创文章受到原创版权保护。转载请注明出处:https://www.johngo689.com/561569/
转载文章受原作者版权保护。转载请注明原作者出处!