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]
}
great-northern-diver/loon.ggplot documentation built on March 20, 2023, 8:03 p.m.