R/utils.R

Defines functions gg_color_hue ss

#' @importFrom grDevices hcl

ss <- function(x, pattern, slot = 1, ...) {
    vapply(strsplit(x = x, split = pattern, ...), "[", character(1), slot)
}


gg_color_hue <- function(n) {
    hues <- seq(15, 375, length = n + 1)
    hcl(h = hues, l = 65, c = 100)[seq(n)]
}
lahuuki/DeconvoBuddies documentation built on Nov. 2, 2024, 10:40 p.m.