Learn R Programming

ReporteRs (version 0.8.10)

setColumnsColors: applies background colors to columns of a FlexTable

Description

applies background colors to columns of a FlexTable

Usage

setColumnsColors(object, j, colors)

Arguments

object

a FlexTable object

j

vector (integer index, col.names values or boolean vector) for columns selection.

colors

background colors to apply (e.g. "#000000" or "black")

See Also

setRowsColors, FlexTable, setZebraStyle

Examples

Run this code
# NOT RUN {
MyFTable <- FlexTable( data = mtcars[1:10, ], add.rownames=TRUE )
MyFTable <- setColumnsColors( MyFTable, j=3:4, colors = "red" )
# }

Run the code above in your browser using DataLab