R/kulife.colors.R

kulife.colors <- function (n=4, KUgrey=FALSE)
{

  n <- as.integer(n[1L])

  if (n<1)
    n <- 1
  
  if (KUgrey)
    res <- palette(c("black", "#666666", "#541800", paste("#541800", round(seq(100, 20, length=n)), sep="")[-1]))
  else
    res <- palette(c("black", "#541800", paste("#541800", round(seq(100, 20, length=n)), sep="")[-1]))

  return(res)
}

Try the kulife package in your browser

Any scripts or data that you put into this service are public.

kulife documentation built on May 2, 2019, 9:53 a.m.