recolor_rank: Recolors a scorecard table grid by setting every cell...

Description Usage Arguments Value Note See Also

View source: R/recolor_rank.R

Description

Recolors a scorecard table grid by setting every cell containing the value of 1 to the given color. This is useful for highlighting the rank columns.

Usage

1
recolor_rank(table, sdf, cell_fill, cell_fg = "black", cell_alpha = 1)

Arguments

table

the table grid to modify

sdf

scorecard data frame

cell_fill

the cell fill color to apply to matches

cell_fg

the cell foreground color

cell_alpha

the cell alpha color adjustment

Value

the modified table grid

Note

Does not color the first match, which presumably is the model row index counter.

See Also

grid::gpar, tableGrid


greatgray/scorecard documentation built on Feb. 14, 2018, 4:28 a.m.