theme_flextable_nmfstm: Apply vanilla theme

View source: R/NMFSReports.R

theme_flextable_nmfstmR Documentation

Apply vanilla theme

Description

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.

Usage

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
)

Arguments

x

a flextable object

pgwidth

a numeric. The width in inches the table should be. Default = 6, which is ideal for A4 (8.5x11 in) portrait paper.

row_lines

T/F. If True, draws a line between each row.

body_size

Numeric. default = 11.

header_size

Numeric. default = 11.

font0

String. Default = "Times New Roman". Instead, you may want "Arial".

spacing

table spacing. default = 0.8.

pad

padding around each element. default = 0.1

Illustrations

fig_theme_vanilla_1.png

Examples

ft <- flextable::flextable(head(airquality))
ft <- NMFSReports::theme_flextable_nmfstm(ft)
ft

EmilyMarkowitz-NOAA/NMFSReports documentation built on March 26, 2023, 1:08 a.m.