These functions set the space around the edges of cells, within the borders.

left_padding(ht)
left_padding(ht) <- value
set_left_padding(ht, row, col, value )
map_left_padding(ht, row, col, fn)

right_padding(ht)
right_padding(ht) <- value
set_right_padding(ht, row, col, value )
map_right_padding(ht, row, col, fn)

top_padding(ht)
top_padding(ht) <- value
set_top_padding(ht, row, col, value )
map_top_padding(ht, row, col, fn)

bottom_padding(ht)
bottom_padding(ht) <- value
set_bottom_padding(ht, row, col, value )
map_bottom_padding(ht, row, col, fn)

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

Numeric: padding width/height in points.

See also

Examples


left_padding(jams) <- 2
left_padding(jams)
#>     Type Price
#> 1      2     2
#> 1.1    2     2
#> 2      2     2
#> 3      2     2

jams <- set_left_padding(jams, 2)
left_padding(jams)
#>     Type Price
#> 1      2     2
#> 1.1    2     2
#> 2      2     2
#> 3      2     2