x
|
A table object created by tt().
|
i
|
Numeric vector, logical matrix, string, or unquoted expression.
-
Numeric vector: Row indices where the styling should be applied. Can be a single value or a vector.
-
Logical matrix: A matrix with the same number of rows and columns as x. i=0 is the header, and negative values are higher level headers. Row indices refer to rows after the insertion of row labels by group_tt(), when applicable.
-
String: Table components "caption", "colnames", "groupi" (row group labels), "~groupi" (non-group rows), "groupj" (column group labels), "notes".
-
Unquoted expression: When supplying an unquoted expression, it is first evaluated in the calling environment, then in the data frame passed to tt().
|
j
|
Column indices where the styling should be applied. Can be:
-
Integer vectors indicating column positions.
-
Character vector indicating column names.
-
A single string specifying a Perl-style regular expression used to match column names.
-
Unquoted expression: Non-standard evaluation is supported. When supplying an unquoted expression, it is first evaluated in the calling environment, then in an environment that includes the columns of the original data passed to tt(), and groupi indices. See examples below.
|
bold
|
Logical; if TRUE, text is styled in bold.
|
italic
|
Logical; if TRUE, text is styled in italic.
|
monospace
|
Logical; if TRUE, text is styled in monospace font.
|
smallcap
|
Logical; if TRUE, text is styled in small caps. In Markdown output format, text is converted to uppercase.
|
underline
|
Logical; if TRUE, text is underlined.
|
strikeout
|
Logical; if TRUE, text has a strike through line.
|
color
|
Text color. Colors are standardized across output formats and can be specified as:
-
Hex codes: "#CC79A7", "#FF0000", "#123ABC"
-
R color names: Any color recognized by R, such as "red", "blue", "forestgreen", "lightblue"
-
Extended color names: 749+ named colors from the LaTeX xcolor package (see tinytable:::latex_colors for the full list)
-
LaTeX color blending (LaTeX output only): "white!80!blue", "red!50", "green!20!red"
|
background
|
Background color. Same color specification options as the color parameter. Can be NULL for default color.
|
fontsize
|
Font size in em units. Can be NULL for default size.
|
align
|
A single character or a string with a number of characters equal to the number of columns in j. Valid characters include ‘c’ (center), ‘l’ (left), ‘r’ (right), ‘d’ (decimal). Decimal alignment is only available in LaTeX via the siunitx package. The width of columns is determined by the maximum number of digits to the left and to the right in all cells specified by i and j.
|
alignv
|
A single character specifying vertical alignment. Valid characters include ‘t’ (top), ‘m’ (middle), ‘b’ (bottom).
|
colspan
|
Number of columns a cell should span. i and j must be of length 1.
|
rowspan
|
Number of rows a cell should span. i and j must be of length 1.
|
indent
|
Text indentation in em units. Positive values only.
|
line
|
String determines if solid lines (rules or borders) should be drawn around the cell, row, or column.
|
line_color
|
Color of the line. See the color argument for details.
|
line_width
|
Width of the line in em units (default: 0.1).
|
line_trim
|
String specifying line trimming. Acceptable values: "l" (left), "r" (right), "lr" (both sides). When specified, shortens the lines by 0.8pt on the specified side(s). Default: NULL (no trimming).
|
finalize
|
A function applied to the table object at the very end of table-building, for post-processing. For example, the function could use regular expressions to add LaTeX commands to the text version of the table hosted in x@table_string, or it could programmatically change the caption in x@caption.
|
…
|
extra arguments are ignored
|