Skip to content

Commit

Permalink
Update AS_heatmap.R
Browse files Browse the repository at this point in the history
  • Loading branch information
CHKim5 committed Jul 21, 2021
1 parent 55b1956 commit 73d9d01
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions R/AS_heatmap.R
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,9 @@ Gcol_D<-as.data.frame(Gcol)
ha = ComplexHeatmap::HeatmapAnnotation(
Group = data$Group,col = list(Group = Gcol),
annotation_legend_param = F,show_annotation_name = F,show_legend = F,simple_anno_size = grid::unit(a_h, "cm"))
G_I = ComplexHeatmap::Legend(labels = rownames(Gcol_D), title = g_legend, legend_gp = grid::gpar(fill = Gcol_D[,1]))
G_I = ComplexHeatmap::Legend(labels = rownames(Gcol_D), title = g_legend,
legend_gp = grid::gpar(fill = Gcol_D[,1]),
labels_gp = grid::gpar(fontfamily ="sans",fontface = "plain"))
M_I = ComplexHeatmap::Legend(col_fun = colors, title = h_legend)
pd = ComplexHeatmap::packLegend(list = list(G_I,M_I))
kt<-ComplexHeatmap::Heatmap(t(m_for_heatmap),
Expand All @@ -79,4 +81,3 @@ kt<-ComplexHeatmap::Heatmap(t(m_for_heatmap),
pdf(paste0(Title,"Heatmap.pdf"))
ComplexHeatmap::draw(kt, annotation_legend_list = pd)
}
?gpar

0 comments on commit 73d9d01

Please sign in to comment.