Description Usage Arguments Value Examples
This is the generic method method dispatches color_vctr generation based on the first argument.
1 | color_vctr(x = double(), text_color = NA, background = NA, style = NA)
|
x |
data source determining method dispatch |
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. |
a color_vctr
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | num_vec <-
color_vctr(1:5,
text_color = "blue",
background = "yellow",
style = "bold")
char_vec <-
color_vctr(
LETTERS,
text_color = color_scale("Blues"),
background = "darkgrey",
style = "italic"
)
if(interactive()){
num_vec
char_Vec
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.