Font size is in points.
font_size(ht) font_size(ht) <- value set_font_size(ht, row, col, value ) map_font_size(ht, row, col, fn)
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 numeric vector. Set to |
font_size()
returns the font_size
property.
set_font_size()
returns the modified huxtable.
Other formatting functions:
background_color()
,
bold()
,
font()
,
na_string()
,
number_format()
,
text_color()
font_size(jams) <- 14 font_size(jams)#> Type Price #> 1 14 14 #> 1.1 14 14 #> 2 14 14 #> 3 14 14jams2 <- set_font_size(jams, 12) font_size(jams2)#> Type Price #> 1 12 12 #> 1.1 12 12 #> 2 12 12 #> 3 12 12jams3 <- set_font_size(jams, 2:3, 1, 12) font_size(jams3)#> Type Price #> 1 14 14 #> 1.1 12 14 #> 2 12 14 #> 3 14 14#> Type Price #> 1 12 12 #> 1.1 14 14 #> 2 12 12 #> 3 14 14