Description Usage Arguments Examples
Takes one or more strings as input, and generates a 24-bit hexadecimal color based on hashing the string
1 2 |
x |
The string(s) to be hashed |
min |
Default 128. The minimum value (0-256) any RGB value can have |
max |
Default 240. Maximum value an RGB value can have |
r |
Explicit value to set for the red channel. Ignores "min" and "max". Combined with "g" and "b" allows some control over the hues generated during hashing. |
g |
Explict green channel value |
b |
Explicit blue channel value |
as.html |
When TRUE (default) the returned value will be hexadecimal strings suitable (eg "#aa318f"). If false, a three column ("R","G","B") array will be returned, one row per input string. |
1 2 | colorizeString(c("quick fox","QUICK fox", "lazy dog"))
colorizeString(c("quick fox","QUICK fox", "lazy dog"), as.html=FALSE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.