R/gg_color_hue.R

Defines functions gg_color_hue

# #' @title Default \code{ggplot} color palette
# #' @description Generate default discrete \code{ggplot} color
# #' @param n the number of colors
gg_color_hue <- function(n) {
  hues <- seq(15, 375, length = n + 1)
  grDevices::hcl(h = hues, l = 65, c = 100)[1:n]
}
z267xu/loon.ggplot documentation built on March 30, 2024, 6:14 p.m.