R/dataColPal.R

Defines functions dataColPal

Documented in dataColPal

#!/usr/bin/env Rscript

#' @title data colour palette
#' @description Makes the colour palette I use for heatmaps of data.
#' (blue - white - orange).
#' @param n The number of shades in the palette (default is 100).
#' @return A colour palette appropriate for the `colours` parameter in `pheatmap`.
#' @importFrom grDevices colorRampPalette
#' @export
dataColPal <- function(n = 100){
  grDevices::colorRampPalette(c("#146EB4", "white", "#FF9900"))(n)
}
stcolema/mdiHelpR documentation built on July 28, 2024, 5:41 a.m.