View source: R/formatting_properties.R
fp_cell | R Documentation |
Create a fp_cell
object that describes cell formatting properties.
fp_cell(
border = fp_border(width = 0),
border.bottom,
border.left,
border.top,
border.right,
vertical.align = "center",
margin = 0,
margin.bottom,
margin.top,
margin.left,
margin.right,
background.color = "transparent",
text.direction = "lrtb",
rowspan = 1,
colspan = 1
)
## S3 method for class 'fp_cell'
format(x, type = "wml", ...)
## S3 method for class 'fp_cell'
print(x, ...)
## S3 method for class 'fp_cell'
update(
object,
border,
border.bottom,
border.left,
border.top,
border.right,
vertical.align,
margin = 0,
margin.bottom,
margin.top,
margin.left,
margin.right,
background.color,
text.direction,
rowspan = 1,
colspan = 1,
...
)
border |
shortcut for all borders. |
border.bottom , border.left , border.top , border.right |
|
vertical.align |
cell content vertical alignment - a single character value, expected value is one of "center" or "top" or "bottom" |
margin |
shortcut for all margins. |
margin.bottom , margin.top , margin.left , margin.right |
cell margins - 0 or positive integer value. |
background.color |
cell background color - a single character value specifying a valid color (e.g. "#000000" or "black"). |
text.direction |
cell text rotation - a single character value, expected value is one of "lrtb", "tbrl", "btlr". |
rowspan |
specify how many rows the cell is spanned over |
colspan |
specify how many columns the cell is spanned over |
x , object |
|
type |
output type - one of 'wml', 'pml', 'html', 'rtf'. |
... |
further arguments - not used |
Other functions for defining formatting properties:
fp_border()
,
fp_par()
,
fp_tab()
,
fp_tabs()
,
fp_text()
obj <- fp_cell(margin = 1)
update(obj, margin.bottom = 5)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.