HTable_col_centered_data_bar: Apply a centered data bar element to columns

Description Usage Arguments

Description

Change numeric column(s) to have a colored, centered data bar element in each cell. The length of the bar is based on the range of values in the column. Changes the contents field.

Usage

1
2
obj$col_centered_data_bar(col = NULL, color1 = "lightgreen", color2 =
  "pink", exclude_rows = NULL, na.rm = TRUE)

Arguments

col

Numeric or character vector of which columns to target.

color1

Character vector (length 1) of an HTML color name, hex color code, or rgb color of the form rgb(x, y, z). Used to color the data bars for the positive values.

color2

Character vector (length 1) of an HTML color name, hex color code, or rgb color of the form rgb(x, y, z). Used to color the data bars for the negative values.

exclude_rows

Numeric vector of which rows to exclude from calculation and styling.


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