setRowsColors: applies background colors to rows of a FlexTable

Description Usage Arguments See Also Examples

View source: R/FlexTablePublicAPI.R

Description

applies background colors to rows of a FlexTable

Usage

1
setRowsColors(object, i, colors)

Arguments

object

a FlexTable object

i

vector (integer index, row.names values or boolean vector) for rows selection.

colors

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

See Also

FlexTable, setColumnsColors, setZebraStyle

Examples

1
2
3
4
if( check_valid_java_version() ){
MyFTable <- FlexTable( data = mtcars[1:10, ], add.rownames=TRUE )
MyFTable <- setRowsColors( MyFTable, i=1:4, colors = "red" )
}

davidgohel/ReporteRs documentation built on Dec. 4, 2018, 5:10 p.m.