HTable_row_color_scale: Apply a color scale gradient to rows

Description Usage Arguments

Description

Change numeric values in row(s) to have a background color gradient based on the range of values in the row.

Usage

1
2
obj$row_color_scale(row = NULL, color = c("#63BE7B", "#FFEB84",
  "#F8696B"), exclude_cols = NULL, na.rm = TRUE, all = FALSE)

Arguments

row

Numeric vector of which rows to target. row = 1 corresponds to the first row after the header row - the header row cannot be targeted with color scales.

color

Character vector of HTML color names, hex color codes, or rgb colors of the form rgb(x, y, z). Used to create a color palette.

exclude_cols

Numeric vector of which columns to exclude from calculation and coloring.

all

Boolean if the color scaling should be scaled across all of the values in the row rows.


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