random_color: Random built-in color names

View source: R/utilities.R

random_colorR Documentation

Random built-in color names

Description

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)

TiagoOlivoto/pliman documentation built on Sept. 14, 2024, 2:24 a.m.