style_spec: Create a style specification

Description Usage Arguments Value

View source: R/style_spec.R

Description

Create a reausable style specification. This makes it easier apply the same styling to multiple htables.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
style_spec(borders_line = NULL, borders_width = NULL,
  borders_color = NULL, padding_padding = NULL,
  font_size_size = NULL, font_family_font = NULL,
  col_add_style_col = NULL, col_add_style_style = NULL,
  col_add_style_include_header = FALSE, col_width_col = NULL,
  col_width_width = NULL, col_bold_col = NULL,
  col_bold_include_header = FALSE, col_italic_col = NULL,
  col_italic_include_header = FALSE, col_bg_color_col = NULL,
  col_bg_color_color = NULL, col_bg_color_include_header = FALSE,
  col_color_col = NULL, col_color_color = NULL,
  col_color_include_header = FALSE, col_pct_fmt_col = NULL,
  col_pct_fmt_mult100 = TRUE, col_comma_fmt_col = NULL,
  col_dollar_fmt_col = NULL, col_color_scale_col = NULL,
  col_color_scale_color = c("#63BE7B", "#FFEB84", "#F8696B"),
  col_color_scale_exclude_rows = NULL, col_color_scale_all = FALSE,
  col_data_bar_col = NULL, col_data_bar_color = "lightgreen",
  col_data_bar_exclude_rows = NULL, col_centered_data_bar_col = NULL,
  col_centered_data_bar_color1 = "lightgreen",
  col_centered_data_bar_color2 = "pink",
  col_centered_data_bar_exclude_rows = NULL, row_add_style_row = NULL,
  row_add_style_style = NULL, row_bold_row = NULL,
  row_italic_row = NULL, row_bg_color_row = NULL,
  row_bg_color_color = NULL, row_color_row = NULL,
  row_color_color = NULL, row_alt_bg_color_color1 = NULL,
  row_alt_bg_color_color2 = NULL, row_alt_color_color1 = NULL,
  row_alt_color_color2 = NULL, row_color_scale_row = NULL,
  row_color_scale_color = c("#63BE7B", "#FFEB84", "#F8696B"),
  row_color_scale_exclude_cols = NULL, row_color_scale_all = FALSE,
  header_add_style_style = NULL, header_bold_flag = FALSE,
  header_italic_flag = FALSE, header_bg_color_color = NULL,
  header_color_color = NULL, div_x_scroll_flag = FALSE,
  div_y_scroll_flag = FALSE, div_max_width_width = NULL,
  div_max_height_height = NULL)

Arguments

borders_line

Passed into borders's line argument. See HTable_borders.

borders_width

Passed into borders's width argument. See HTable_borders.

borders_color

Passed into borders's color argument. See HTable_borders.

padding_padding

Passed into padding's padding argument. See HTable_padding.

font_size_size

Passed into font_size's size argument. See HTable_font_size.

font_family_font

Passed into font_family's font argument. See HTable_font_family.

col_add_style_col

Passed into col_add_style's col argument. See HTable_col_add_style.

col_add_style_style

Passed into col_add_style's style argument. See HTable_col_add_style.

col_add_style_include_header

Passed into col_add_style's include_header argument. See HTable_col_add_style.

col_width_col

Passed into col_width's col argument. See HTable_col_width.

col_width_width

Passed into col_width's width argument. See HTable_col_width.

col_bold_col

Passed into col_bold's col argument. See HTable_col_bold.

col_bold_include_header

Passed into col_bold's include_header argument. See HTable_col_bold.

col_italic_col

Passed into col_italic's col argument. See HTable_col_italic.

col_italic_include_header

Passed into col_italic's include_header argument. See HTable_col_italic.

col_bg_color_col

Passed into col_bg_color's col argument. See HTable_col_bg_color.

col_bg_color_color

Passed into col_bg_color's color argument. See HTable_col_bg_color.

col_bg_color_include_header

Passed into col_bg_color's include_header argument. See HTable_col_bg_color.

col_color_col

Passed into col_color's col argument. See HTable_col_color.

col_color_color

Passed into col_color's color argument. See HTable_col_color.

col_color_include_header

Passed into col_color's include_header argument. See HTable_col_color.

col_pct_fmt_col

Passed into col_pct_fmt's col argument. See HTable_col_pct_fmt.

col_pct_fmt_mult100

Passed into col_pct_fmt's mult100 argument. See HTable_col_pct_fmt.

col_comma_fmt_col

Passed into col_comma_fmt's col argument. See HTable_col_comma_fmt.

col_dollar_fmt_col

Passed into col_dollar_fmt's col argument. See HTable_col_dollar_fmt.

col_color_scale_col

Passed into col_color_scale's col argument. See HTable_col_color_scale.

col_color_scale_color

Passed into col_color_scale's color argument. See HTable_col_color_scale.

col_color_scale_exclude_rows

Passed into col_color_scale's exclude_rows argument. See HTable_col_color_scale.

col_color_scale_all

Passed into col_color_scale's all argument. See HTable_col_color_scale.

col_data_bar_col

Passed into col_data_bar's col argument. See HTable_col_data_bar.

col_data_bar_color

Passed into col_data_bar's color argument. See HTable_col_data_bar.

col_data_bar_exclude_rows

Passed into col_data_bar's exclude_rows argument. See HTable_col_data_bar.

col_centered_data_bar_col

Passed into col_centered_data_bar's col argument. See HTable_col_centered_data_bar.

col_centered_data_bar_color1

Passed into col_centered_data_bar's color1 argument. See HTable_col_centered_data_bar.

col_centered_data_bar_color2

Passed into col_centered_data_bar's color2 argument. See HTable_col_centered_data_bar.

col_centered_data_bar_exclude_rows

Passed into col_centered_data_bar's exclude_rows argument. See HTable_col_centered_data_bar.

row_add_style_row

Passed into row_add_style's row argument. See HTable_row_add_style.

row_add_style_style

Passed into row_add_style's style argument. See HTable_row_add_style.

row_bold_row

Passed into row_bold's row argument. See HTable_row_bold.

row_italic_row

Passed into row_italic's row argument. See HTable_row_italic.

row_bg_color_row

Passed into row_bg_color's row argument. See HTable_row_bg_color.

row_bg_color_color

Passed into row_bg_color's color argument. See HTable_row_bg_color.

row_color_row

Passed into row_color's row argument. See HTable_row_color.

row_color_color

Passed into row_color's color argument. See HTable_row_color.

row_alt_bg_color_color1

Passed into row_alt_bg_color's color1 argument. See HTable_row_alt_bg_color.

row_alt_bg_color_color2

Passed into row_alt_bg_color's color2 argument. See HTable_row_alt_bg_color.

row_alt_color_color1

Passed into row_alt_color's color1 argument. See HTable_row_alt_color.

row_alt_color_color2

Passed into row_alt_color's color2 argument. See HTable_row_alt_color.

row_color_scale_row

Passed into row_color_scale's row argument. See HTable_row_color_scale.

row_color_scale_color

Passed into row_color_scale's color argument. See HTable_row_color_scale.

row_color_scale_exclude_cols

Passed into row_color_scale's exclude_cols argument. See HTable_row_color_scale.

row_color_scale_all

Passed into row_color_scale's all argument. See HTable_row_color_scale.

header_add_style_style

Passed into header_add_style's style argument. See HTable_header_add_style.

header_bold_flag

Boolean if header_bold should be run. See HTable_header_bold.

header_italic_flag

Boolean if header_italic should be run. See HTable_header_italic.

header_bg_color_color

Passed into header_bg_color's color argument. See HTable_header_bg_color.

header_color_color

Passed into header_color's color argument. See HTable_header_color.

div_x_scroll_flag

Boolean if div_x_scroll should be run. See HTable_div_x_scroll.

div_y_scroll_flag

Boolean if div_y_scroll should be run. See HTable_div_y_scroll.

div_max_width_width

Passed into div_max_width's width argument. See HTable_div_max_width.

div_max_height_height

Passed into div_max_height's height argument. See HTable_div_max_height.

Value

List of class "style_spec".


fazetu/htable documentation built on Feb. 12, 2020, 10:13 a.m.