Normally blocks are defined automatically, based on the logical structure
of the table and the style selected by the user. This function allows
additional blocks to be defined "manually", explicitly specifying their
position and span in terms of row and column numbers.
There are two typical situations in which one would want to define a new
block. The first is to highlight a specific set of cells in the table
visually, by shading or a border. For that purpose one should specify
enabled=TRUE
(so the block will be displayed) and perhaps
props
(for non-default graphical properties).
The second reason to define a new block is to use its ID as a quick way to
refer to the entries within it, for example to set their graphical
properties using props<-
. In that case enabled
for the
block should be FALSE, since the block itself is not to be displayed.
Row and column numbers are with respect to the augmented row-column grid
of the table. See ?adim
for more more information about this grid.
The helper functions arow
and acol
can be used to specify
arguments arows
and acols
in terms of table parts or
previously defined blocks.
Graphical properties for blocks defined by this function will not be
changed if a new block style is applied to the plotted table. Use one of
the props<-
functions instead.
There is no way to remove or undefine a block, other than recreating the
plotted table object from scratch. However they can be disabled using a
props<-
function, and then will not be displayed.