ReporteRs (version 0.1)

cellProperties: Cell formating properties

Description

Create an object that describes cell formating properties. This objects are used by tableProperties.

Usage

cellProperties(border.bottom.color = "black",
    border.bottom.style = "solid", border.bottom.width = 1,
    border.left.color = "black",
    border.left.style = "solid", border.left.width = 1,
    border.top.color = "black", border.top.style = "solid",
    border.top.width = 1, border.right.color = "black",
    border.right.style = "solid", border.right.width = 1,
    vertical.align = "middle", padding.bottom = 1,
    padding.top = 1, padding.left = 1, padding.right = 1,
    background.color = "white", padding, border.width,
    border.style, border.color)

Arguments

padding

cell padding - integer value : 0>= value - overwrite all padding.* values

border.width

border width - an integer value : 0>= value - overwrite all border.*.style values

border.style

border style - a string value : "single" or "none" or "hidden" or "double" or "dotted" or "dashed" or "inset" or "outset" - overwrite all border.*.style values

border.color

border color - a string value (e.g. "#000000" or "black") - overwrite all border.*.color values

border.bottom.color

border bottom color - a string value (e.g. "#000000" or "black")

border.bottom.style

border bottom style - a string value : "single" or "none" or "hidden" or "double" or "dotted" or "dashed" or "inset" or "outset"

border.bottom.width

border bottom width - an integer value : 0>= value

border.left.color

border left color - a string value (e.g. "#000000" or "black")

border.left.style

border left style - a string value : "single" or "none" or "hidden" or "double" or "dotted" or "dashed" or "inset" or "outset"

border.left.width

border left width - an integer value : 0>= value

border.top.color

border top color - a string value (e.g. "#000000" or "black")

border.top.style

border top style - a string value : "single" or "none" or "hidden" or "double" or "dotted" or "dashed" or "inset" or "outset"

border.top.width

border top width - an integer value : 0>= value

border.right.color

border right color - a string value (e.g. "#000000" or "black")

border.right.style

border right style - a string value : "single" or "none" or "hidden" or "double" or "dotted" or "dashed" or "inset" or "outset"

border.right.width

border right width - integer value : 0>= value

vertical.align

cell content vertical alignment - a string value : "center" or "top" or "bottom"

padding.bottom

cell bottom padding - integer value : 0>= value

padding.top

cell top padding - integer value : 0>= value

padding.left

cell left padding - integer value : 0>= value

padding.right

cell right padding - integer value : 0>= value

background.color

cell background color - a string value (e.g. "#000000" or "black")

See Also

tableProperties, textProperties , parProperties

Examples

Run this code
# NOT RUN {
cellProperties( border.color = "gray", border.width = 2 )
cellProperties(border.left.width = 0, border.right.width = 0
         , border.bottom.width = 2, border.top.width = 0
         , padding.bottom = 2, padding.top = 2
         , padding.left = 2, padding.right = 2 )
# }

Run the code above in your browser using DataCamp Workspace