setZebraStyle: FlexTable rows zebra striping

Description Usage Arguments See Also Examples

View source: R/FlexTablePublicAPI.R

Description

applies background color to alternate rows (zebra striping). Set a color if row index is odd and another if row index is even.

Usage

1
setZebraStyle(object, odd, even)

Arguments

object

a FlexTable object

odd

background color applied to odd row indexes - single character value (e.g. "#000000" or "black")

even

background color applied to even row indexes - single character value (e.g. "#000000" or "black")

See Also

FlexTable

Examples

1
2
3
4
MyFTable <- FlexTable( data = iris[1:10, ] )

# Zebra striped table
MyFTable <- setZebraStyle( MyFTable, odd = "#8A949B", even = "#FAFAFA" )

ReporteRs documentation built on April 1, 2018, 12:06 p.m.