View source: R/as_color_vctr.R
Coersion function for generation of a color_vctr from an existing vector
1 | as_color_vctr(x, text_color = NA, background = NA, style = NA)
|
x |
object to coerce |
text_color |
A vector of length 1 or same length as vect. Details the color the text should be. Valid values can be found from the 'valid_text_color()' function.NA means no text color. |
background |
A vector of length 1 or same length as vect. Details the background color of the text. Valid values can be found from the 'valid_background()' function. NA means no background color. |
style |
A vector of length 1 or same length as vect. Details the style of the text Valid values can be found from the 'valid_style()' function. NA means no styling. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.