Skip to content

Commit

Permalink
Change color for pNA annotation in heatmap
Browse files Browse the repository at this point in the history
  • Loading branch information
csoneson committed Jul 3, 2023
1 parent a442a22 commit 73776b9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 4 additions & 1 deletion R/makeAbundanceHeatmap.R
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@
#' hm <- makeAbundanceHeatmap(sce, assayToPlot = "log2_LFQ.intensity",
#' doCenter = TRUE, settings = "report")
#' ComplexHeatmap::draw(hm)
#' hm <- makeAbundanceHeatmap(sce, assayToPlot = "log2_LFQ.intensity",
#' doCenter = TRUE, settings = "export")
#' ComplexHeatmap::draw(hm)
#'
#' @importFrom ComplexHeatmap Heatmap columnAnnotation
#' @importFrom SummarizedExperiment assay assayNames
Expand All @@ -52,7 +55,7 @@ makeAbundanceHeatmap <- function(sce, assayToPlot, doCenter,
if (!"pNA" %in% colnames(SummarizedExperiment::rowData(sce))) {
SummarizedExperiment::rowData(sce)$pNA <- NA_real_
}
pNAcol <- circlize::colorRamp2(c(0, 100), c("white", "darkviolet"))
pNAcol <- circlize::colorRamp2(c(0, 100), c("white", "chocolate4"))

groupcols <- .gg_color_hue(length(unique(sce$group)))
names(groupcols) <- levels(factor(sce$group))
Expand Down
3 changes: 3 additions & 0 deletions man/makeAbundanceHeatmap.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 73776b9

Please sign in to comment.