styles_pkg: Built-In Styles for Table Elements

Description Usage Format See Also Examples

Description

A list that contains pre-defined styles for table entries, blocks, and hvrules. Styles are used to assign graphical properties to elements, and thus control the appearance of a table when it is displayed. In addition to the package-provided styles in this list, users can modify or create new styles to customize their tables.

Usage

1

Format

The list has the following components, each a styleObj object:

entryStyle_pkg_base, blockStyle_pkg_base, hvruleStyle_pkg_base

Minimal styles that assign the same graphical properties to all elements.

entryStyle_pkg_1, blockStyle_pkg_1, hvruleStyle_pkg_1

The default styles used by the package.

entryStyle_pkg_2

Similar to entryStyle_pkg_1, but with hpad and vpad about 50 percent larger, to give a more spacious layout of table entries.

entryStyle_pkg_null, blockStyle_pkg_null, hvruleStyle_pkg_null

"Null" styles designed to not match any element, and thus not assign graphical properties to any element. Using the null style for hvrules is a way to disable all hvrules when the plot is created (rather than afterwards using a props<- function).

See Also

styleObj, tablesggOpt

Examples

1
2
  names(styles_pkg)  # built-in styles
  str(styles_pkg$entryStyle_pkg_1)

tablesgg documentation built on June 3, 2021, 1:06 a.m.