# annotation_colors设定注释信息的颜色 pheatmap(test, annotation_col = annotation_col, annotation_colors = ann_colors, main = "Title") image.png pheatmap(test, annotation_col = annotation_col, annotation_row = annotation_row, annotation_colors = ann_colors) image.png pheatmap(test, annotation_co...
#对分组进行颜色标定>ann_colors=list(Time=c("white","firebrick"),CellType=c("blue","red"),GeneClass=c(Path1="#7570B3",Path2="#E7298A",Path3="#66A61E"))>pheatmap(test,annotation_col=annotation_col,annotation_row=annotation_row,annotation_colors=ann_colors) 对分组进行颜色标定.png 把整...
filename="name.pdf/png"# 保存,自动调整纸张大小 annotation_col# 列分组 annotation_row# 行分组 annotation_colors# 分组颜色 cluster_row =F# 横向不聚类 cluster_column =F# 纵向不聚类 legend =F# 去除legend border =F# 去除cell边框 border_color ="blue"# cell边框颜色 annotation_names_col =F# 不展...
annotation_colors = ann_colors) #还可以利用gaps_row, gaps_col自己设定要分隔开的位置 pheatmap(test, annotation_col = annotation_col, cluster_rows = FALSE, gaps_row = c(10, 14), cutree_col = 2)
annotation_col:列分组 annotation_row:行分组 annotation_colors:分组颜色 Group=c("A", "A", "A", "A", "A", "A", "A", "A", "A", "A", "B", "B", "B", "B", "B", "B", "B", "B", "B", "B") group_sample=data.frame(Group) ...
Error in names(annotation_colors[[names(annotation)[i]]]) <- l : 'names' attribute [2] must be the same length as the vector [1] 如果出图出现这个报错,一般是横纵注释信息数量不一致,应该是你横纵注释信息放错位置了,可以调换一下顺序。
pheatmap(test, annotation_col = annotation_col, annotation_row = annotation_row, angle_col = "45") 1. # 根据聚类结果,自定义注释分组及颜色 ann_colors = list( Time = c("white", "firebrick"), CellType = c(CT1 = "#1B9E77", CT2 = "#D95F02"), GeneClass = c(Path1 = "#7570B3...
color = colorRampPalette(colors = c('#11427C','white','#C31E1F'))(100),#设置热图的颜色 cluster_rows = F,cluster_cols = F,#聚类,有些期刊你会发现它是都进行聚类了,或者是只有行进行聚类或只有列进行聚类,那这里的 F就是不聚类的意思,T就是聚类的意思 annotation_col = annotation_col,ga...
legend_labels = NA, annotation_row = NA, annotation_col = NA, annotation = NA, annotation_colors = NA, annotation_legend = TRUE, annotation_names_row = TRUE, annotation_names_col = TRUE, drop_levels = TRUE, show_rownames = T, show_colnames = T, main = NA, ...
Error in names(annotation_colors[[names(annotation)[i]]]) <- l : 'names' attribute [2] must be the same length as the vector [1]如果出图出现这个报错,一般是横纵注释信息数量不一致,应该是你横纵注释信息放错位置了,可以调换一下顺序。修改注释信息及颜色参数 ...