View source: R/jj_get_jj_colours.R
jj_get_jj_colours | R Documentation |
Returns a vector of colors with names according to input vector levels.
jj_get_jj_colours(vec, symbols = FALSE)
vec |
vector containing the names, for which colours should be assinged |
symbols |
if TRUE, assign numbers instead of colors (useful if groups should be encoded by symbols) |
jj_get_jj_colours(c("a","d","c","a"))
jj_get_jj_colours(c("a","d","c","a"), symbols=TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.