randomColor: Get a pretty random color.

Description Usage Arguments Value Examples

View source: R/randomcolor.R

Description

Get a pretty random color.

Usage

1
2
3
randomColor(count = 1, hue = c(" ", "random", "red", "orange", "yellow",
  "green", "blue", "purple", "pink", "monochrome"), luminosity = c(" ",
  "random", "light", "bright", "dark"))

Arguments

count

number of colors (>= 1)

hue

The hue of the colors to be selected.

luminosity

The luminosity of the colors to be selected.

Value

A character vector of random color hexadecimal codes.

Examples

1
2
3
4
5
randomColor()

randomColor(hue="pink")

randomColor(10, luminosity="light")

Example output

[1] "#36158c"
[1] "#db06a6"
 [1] "#f7ce7b" "#75f9f3" "#f49fe9" "#b2ffdf" "#ffccf5" "#fff1b5" "#a1fcca"
 [8] "#a9edf2" "#89ffdd" "#999ee8"

randomcoloR documentation built on Dec. 1, 2019, 1:11 a.m.