discrete_palette: Generate a discrete color palette

View source: R/utils.R

discrete_paletteR Documentation

Generate a discrete color palette

Description

This function generates a vector of colors for a discrete variable, given a specified palette name.

Usage

discrete_palette(n = 10, palette = c("Ju1", "De1", "ggplot"))

Arguments

n

An integer specifying the number of colors to generate.

palette

A character vector specifying the palette to use.

Value

A character vector of color codes.

Examples

discrete_palette()
discrete_palette(n=20, palette = "ggplot")


dputhier/dbfmcl documentation built on Dec. 20, 2024, 1:59 a.m.