Nothing
#' @title Generate Phylostratum Colors
#' @description Generate a color palette for phylostrata visualization using a log-scaled transformation.
#' @param n number of colors to generate
#' @return A character vector of color codes
#' @examples
#' # Generate colors for 5 phylostrata
#' colors <- PS_colours(5)
#' @importFrom grDevices colorRampPalette
#' @export
PS_colours <- function(n) {
vals <- log(1:n)
vals <- (vals - min(vals)) / (max(vals) - min(vals))
pal <- grDevices::colorRampPalette(c("black", "#AD6F3B", "lightgreen"))
pal(100)[floor(vals * 99) + 1]
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.