View source: R/properties-cell.R
text_color | R Documentation |
Colors can be in any format understood by R:
A color name like "darkred"
A HTML string like "#FF0000"
The result of a function like rgb(1, 0, 0)
or grey(0.5)
text_color(ht)
text_color(ht) <- value
set_text_color(ht, row, col, value)
map_text_color(ht, row, col, fn)
ht |
A huxtable. |
value |
A character vector or matrix. Set to |
row |
A row specifier. See rowspecs for details. |
col |
An optional column specifier. |
fn |
A mapping function. See mapping-functions for details. |
Other formatting functions:
background_color()
,
bold()
,
font()
,
font_size()
,
na_string()
,
number_format()
text_color(jams) <- "blue"
text_color(jams)
set_text_color(jams, "red")
set_text_color(jams, 2:3, 1, "red")
map_text_color(jams, by_rows("red", "blue"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.