Color table rows according to ggplot coloring by groups.

tableRowColors(data, variable, colorvec, alpha_append = NULL)

Arguments

data

a special data frame.

variable

a column name in the data specifying the factor used for plot colors.

colorvec

a vector of colors.

alpha_append

NULL or a two digit numeric or character to append to hex colors.

Value

a DT::styleEqual call.

Examples

#not run