random_color {pliman}R 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)

[Package pliman version 2.1.0 Index]