setZebraStyle

0th

Percentile

FlexTable rows zebra striping

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

Usage
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

Aliases
  • setZebraStyle
Examples
# NOT RUN {
#START_TAG_TEST
# Create a FlexTable object with first 10 lines of data.frame mtcars
# add row.names as first column
MyFTable = FlexTable( data = mtcars[1:10, ]
  , add.rownames=TRUE
)
# Zebra striped table
MyFTable = setZebraStyle( MyFTable, odd = "#8A949B", even = "#FAFAFA" )
#STOP_TAG_TEST
# }
Documentation reproduced from package ReporteRs, version 0.6.9, License: GPL-3

Community examples

Looks like there are no examples yet.