| Type: | Package | 
| Title: | Generate Attractive Random Colors | 
| Version: | 1.1.0.1 | 
| Date: | 2017-12-06 | 
| Author: | Ron Ammar | 
| Maintainer: | Ron Ammar <ron.ammar@gmail.com> | 
| Description: | Simple methods to generate attractive random colors. The random colors are from a wrapper of 'randomColor.js' https://github.com/davidmerfield/randomColor. In addition, it also generates optimally distinct colors based on k-means (inspired by 'IWantHue' https://github.com/medialab/iwanthue). | 
| License: | CC0 | 
| BugReports: | https://github.com/ronammar/randomcoloR/issues | 
| LazyData: | TRUE | 
| RoxygenNote: | 6.0.1 | 
| Imports: | colorspace, stringr, V8, stats, methods, scales, Rtsne, grDevices, cluster | 
| NeedsCompilation: | no | 
| Packaged: | 2019-11-24 16:38:07 UTC; ripley | 
| Repository: | CRAN | 
| Date/Publication: | 2019-11-24 18:36:34 UTC | 
Generate palettes of optimally distinct colors.
Description
Inspired by the the theory from http://tools.medialab.sciences-po.fr/iwanthue/theory.php For more info, also see https://en.wikipedia.org/wiki/Lab_color_space
Usage
distinctColorPalette(k = 1, altCol = FALSE, runTsne = FALSE)
Arguments
| k | number of colors (>= 1). May be ineffective for k > 40. | 
| altCol | Use an alternate color space | 
| runTsne | Preprocess color space with t-SNE to obtain distinct colors. Reduces performance. | 
Value
A character vector of k optimally distinct colors in hexadecimal codes.
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
randomColor()
randomColor(hue="pink")
randomColor(10, luminosity="light")