Description Usage Arguments Value Author(s) References Examples
Look up a color by exact or partial name.
1 | name2color(name, exact = TRUE, hex_only = TRUE, n = -1)
|
name |
Character string giving color name |
exact |
If |
hex_only |
If |
n |
For partial matching, limit the results to the |
A character string with a hex color code, or a data frame
Thomas Lumley
http://blog.xkcd.com/2010/05/03/color-survey-results/
1 2 3 4 5 | name2color("green")
name2color("green",exact=FALSE,hex_only=FALSE,n=10)
barplot(rep(1,10), col=name2color("green",exact=FALSE,n=10))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.