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 ef9da89 commit 46564ee
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions R/AS_heatmap.R
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,10 @@
#' @return Heatmap
#' @export
#'
#' @examples data<-D_tran(Data,param="Auto",save=F)
#' @examples data(Data)
#' data<-D_tran(Data,param="Auto",save=F)
#' AS_heatmap(data)
#' dev.off()
AS_heatmap<-function(data,col = c("green", "white", "red"),
col_lim = c(-3,0,3),
reverse = F,
Expand Down Expand Up @@ -71,7 +73,6 @@ kt<-ComplexHeatmap::Heatmap(t(m_for_heatmap),
width = grid::unit(Hsize[1], "cm"), height = grid::unit(Hsize[2], "cm"),
top_annotation = ha,
show_heatmap_legend = F)
pdf(paste0(Title,"Heatmap.pdf"))
pdf(paste0(Title,"Heatmap.pdf"))
ComplexHeatmap::draw(kt, annotation_legend_list = pd)
dev.off()
}

0 comments on commit 46564ee

Please sign in to comment.