Skip to contents

Randomly chooses single or multiple built-in color names which R knows about. See more at grDevices::colors()

Usage

random_color(n = 1, distinct = FALSE)

Arguments

n

The number of color names. Defaults to 1.

distinct

Logical indicating if the colors returned should all be distinct. Defaults to FALSE.

Value

A character vector of color names

Examples

library(pliman)
random_color(n = 3)