Apply theme vanilla to a flextable: The external horizontal lines of the different parts of the table (body, header, footer) are black 2 points thick, the external horizontal lines of the different parts are black 0.5 point thick. Header text is bold, text columns are left aligned, other columns are right aligned.
theme_flextable_nmfstm(
x,
pgwidth = 6.5,
row_lines = TRUE,
body_size = 10,
header_size = 10,
font0 = "Times New Roman",
spacing = 0.6,
pad = 2
)
a flextable object
a numeric. The width in inches the table should be. Default = 6, which is ideal for A4 (8.5x11 in) portrait paper.
T/F. If True, draws a line between each row.
Numeric. default = 11.
Numeric. default = 11.
String. Default = "Times New Roman". Instead, you may want "Arial".
table spacing. default = 0.8.
padding around each element. default = 0.1
ft <- flextable::flextable(head(airquality))
ft <- NMFSReports::theme_flextable_nmfstm(ft)
ft
#> a flextable object.
#> col_keys: `Ozone`, `Solar.R`, `Wind`, `Temp`, `Month`, `Day`
#> header has 1 row(s)
#> body has 6 row(s)
#> original dataset sample:
#> Ozone Solar.R Wind Temp Month Day
#> 1 41 190 7.4 67 5 1
#> 2 36 118 8.0 72 5 2
#> 3 12 149 12.6 74 5 3
#> 4 18 313 11.5 62 5 4
#> 5 NA NA 14.3 56 5 5