View source: R/tblHvrules.bare.R
tblHvrules | R Documentation |
Create horizontal and vertical rules (hvrules) for a table, based on blocks of table entries. This is an internal utility function, not intended to be called directly by package users.
tblHvrules(x)
x |
A |
This function creates four hvrules per block: two hrules that run along the top and bottom sides of the block, and two vrules that run along the left and right sides of the block. All of the generated hvrules are disabled by default.
No graphical properties of the hvrules, such as the size of the inserted
rectangle or the appearance of the line within it, are assigned by this
function. hvrules can be selectively enabled and given graphical
properties by applying a style (see styleObj
) to create plot-ready
hvrules (a prHvrule
object). Properties in an existing plot can
also be modified using the props<-
function.
An object of S3 class tblHvrules
, which is a data frame with each
row specifying one hvrule for the table. If there are no hvrules, the
data frame will have no rows. Columns are:
id |
A unique identifier for the hvrule. This function creates identifiers
using the format |
direction |
Either "hrule" for a horizontal rule or "vrule" for a vertical rule. |
block |
The identifier of the block along the side of which the hvrule runs. |
side |
Which side of the block the hvrule runs along, "top", "bottom", "left", or "right". |
adjacent_blocks |
Character string containing the IDs of blocks that are adjacent to
|
arow1 , arow2 , acol1 , acol2 |
Location of the hvrule with respect to the expanded row-column grid of the
table. An hrule is inserted between table rows, and therefore
|
enabled |
Logical indicating whether the hvrule is to be displayed. This function
sets |
Row names for the data frame are set equal to id
.
tblBlocks
defines a default set of blocks that reflect the
logical structure of the table. This function is called by internal
function apply_style
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.