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)

pliman documentation built on Oct. 15, 2023, 1:06 a.m.

Related to random_color in pliman...