Description Usage Arguments See Also Examples
View source: R/FlexTablePublicAPI.R
applies background color to alternate rows (zebra striping). Set a color if row index is odd and another if row index is even.
1 | setZebraStyle(object, odd, even)
|
object |
a |
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") |
1 2 3 4 | MyFTable <- FlexTable( data = iris[1:10, ] )
# Zebra striped table
MyFTable <- setZebraStyle( MyFTable, odd = "#8A949B", even = "#FAFAFA" )
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.