randomcoloR (version 1.1.0.1)

randomColor: Get a pretty random color.

Description

Get a pretty random color.

Usage

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

Run this code
# NOT RUN {
randomColor()

randomColor(hue="pink")

randomColor(10, luminosity="light")
# }

Run the code above in your browser using DataLab