recolor_status: Recolors a scorecard table grid by setting the model...

Description Usage Arguments Value See Also

View source: R/recolor_status.R

Description

Recolors a scorecard table grid by setting the model activation status cells to the given colors. This is useful for highlighting the status column. Pass a subset of the scorecard data frame to apply recoloring for a particular status type; uses the data frame index column to work out row offsets in the table grid.

Usage

1
2
recolor_status(table, sdf, cell_fill, cell_fg = "black",
  cell_border = "darkgray", cell_alpha = 1)

Arguments

table

the table grid to modify

sdf

scorecard data frame, subset for recoloring

cell_fill

the cell fill color to apply to matches

cell_fg

the cell foreground color, default black

cell_border

the cell border color, default dark gray

cell_alpha

the cell alpha color adjustment, default 1

Value

the modified table grid

See Also

grid::gpar, tableGrid, gtable


greatgray/scorecard documentation built on May 17, 2019, 8:34 a.m.