R/ggPlotColours.R

Defines functions ggPlotColours

Documented in ggPlotColours

#' Function to access default ggpplot colours used by Seurat DimPlot
#' @export
ggPlotColours <- function(n = 6, h = c(0, 360) + 15){
  if ((diff(h) %% 360) < 1) h[2] <- h[2] - 360/n
  hcl(h = (seq(h[1], h[2], length = n)), c = 100, l = 65)
}
alexthiery/scHelper documentation built on Aug. 26, 2023, 3:42 p.m.