setFlexTableBorders
From ReporteRs v0.7.1
by David Gohel
change grid lines of a FlexTable
apply borders scheme to a FlexTable. A border scheme is a set of 4 different borders: inner vectical and horizontal , outer vectical and horizontal.
Usage
setFlexTableBorders(object, inner.vertical = borderProperties(),
inner.horizontal = borderProperties(),
outer.vertical = borderProperties(),
outer.horizontal = borderProperties(), body = TRUE, header = TRUE,
footer = FALSE)
Arguments
- object
a
FlexTable
object- inner.horizontal
a
borderProperties
object- inner.vertical
a
borderProperties
object- outer.horizontal
a
borderProperties
object- outer.vertical
a
borderProperties
object- body
a logical value (default to TRUE), specifies to apply scheme to table body
- header
a logical value (default to TRUE), specifies to apply scheme to table header
- footer
a logical value (default to FALSE), specifies to apply scheme to table footer
See Also
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
)
MyFTable = setFlexTableBorders( MyFTable
, inner.vertical = borderProperties( style = "dashed" )
, inner.horizontal = borderProperties( style = "dashed" )
, outer.vertical = borderProperties( width = 2 )
, outer.horizontal = borderProperties( width = 2 )
)
#STOP_TAG_TEST
# }
Community examples
Looks like there are no examples yet.