Description Usage Arguments Value See Also Examples
Create a palette given multiple words
1 2 | create.palette(sentence, n.colors = NULL, sorted = TRUE,
aggreg.method = "most-prominent", language = "en")
|
sentence |
a string of words |
n.colors |
number of colors of the palette. If |
sorted |
logical, if |
aggreg.method |
method of aggregation of the colors corresponding to each word in the
|
language |
string defining the language of |
a color palette of n.colors
elements.
1 2 3 4 5 | mfl = "the rain in spain stays mainly in the plain"
mfl1 = create.palette(mfl, n.colors = 11)
mfl2 = create.palette(mfl, n.colors = 11, aggreg.method = "median")
plot(1:11, rep(0, 11), pch = 15, col = mfl1, cex = 4, axes = FALSE, xlab = "", ylab = "")
points(1:11, rep(-0.2, 11), pch = 15, col = mfl1, cex = 4)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.