Description Usage Arguments Value See Also
View source: R/recolor_status.R
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.
1 2 | recolor_status(table, sdf, cell_fill, cell_fg = "black",
cell_border = "darkgray", cell_alpha = 1)
|
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 |
the modified table grid
grid::gpar, tableGrid, gtable
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.