Skip to content

Commit f275afe

Browse files
committed
add colors
1 parent 9b570bd commit f275afe

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

GENE_expre_pheatmap.r

+3-1
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,7 @@ b=data.matrix(a[,3:522])
66

77
annotation_row = data.frame(GeneClass = factor(rep(c("DIF", "IMR", "MES","PRO"), c(20, 22, 37,21))))
88
rownames(annotation_row) = rownames(a)
9-
pheatmap(b, annotation_row = annotation_row,cluster_row=FALSE,fontsize=9, fontsize_row=6)
9+
1010

11+
hmcols<- colorRampPalette(c("blue","red"))(10)
12+
pheatmap(b, annotation_row = annotation_row,cluster_row=FALSE,color=hmcols, fontsize=9, fontsize_row=6, scale="row")

0 commit comments

Comments
 (0)