background_color: Set cell background color

Description Usage Arguments Details Value See Also Examples

Description

Colors can be in any format understood by R:

Usage

1
2
3
4

Arguments

ht

A huxtable.

row

A row specifier. See rowspecs for details.

col

An optional column specifier.

fn

A mapping function. See mapping-functions for details.

value

A character vector or matrix.

Set to NA to reset to the default, which is "NA".

Details

Transparent colors are not guaranteed to work at present.

Value

background_color() returns the background_color property. set_background_color() returns the modified huxtable.

See Also

Other formatting functions: bold(), font_size(), font(), na_string(), number_format(), text_color()

Examples

1
2
3
4
5
6
7
8

huxtable documentation built on Feb. 15, 2021, 1:07 a.m.