R/plotting.R

Defines functions ggplot_colors

Documented in ggplot_colors

#' Shows the default ggplot colors
#'
#' @param n The number of colors needed
#' @return A character vector of the hex codes, and a plot showing their colors
#' @export
ggplot_colors <- function(n) {
  scales::show_col(scales::hue_pal()(n))
  scales::hue_pal()(n)
}
jayleetx/jay_utils documentation built on Jan. 24, 2021, 6:09 a.m.