| text_color {huxtable} | R Documentation |
Functions to get or set the text color property of huxtable table cells.
text_color(ht) text_color(ht) <- value set_text_color(ht, row, col, value, byrow = FALSE)
ht |
A huxtable. |
value |
A character vector or matrix of valid R color names. Set to |
row |
A row specifier. See |
col |
An optional column specifier. |
byrow |
If |
For text_color, the text_color attribute.
For set_text_color, the ht object.
Other formatting functions: background_color,
bold, font_size,
font, na_string,
number_format
ht <- huxtable(a = 1:3, b = 1:3)
text_color(ht) <- 'blue'
text_color(ht)
ht <- huxtable(a = 1:3, b = 3:1)
set_text_color(ht, 'blue')
set_text_color(ht, 1:2, 1, 'blue')
set_text_color(ht, 1:2, 1:2, c('blue', 'red'), byrow = TRUE)
set_text_color(ht, where(ht == 1), 'blue')