These functions take an array of values and labels or an array of text and add it to one or many grid viewports in an orderly fashion.
add.grid.table(
txt,
col.nams = NULL,
ystart,
xstart = unit(0, "npc"),
start.pt = 1,
vp,
vp.num = 1,
minrow = 5,
cell.padding = 0.5,
mult.col.padding = 1,
col.optimize = TRUE,
equal.widths = FALSE,
space.before.table = 1,
center.table = FALSE,
use.rect = FALSE,
fill.type = NULL,
fill.col = "grey",
cell.lines.lty = 0,
...
)
A List is returned with the following components
new starting point for new text
null if everything gets printed
the viewport needed for next text printed
A grob object that can be plotted.
The text or table values to add to the grid object.
the column names of the table values
The y location to start printing in the grid viewport
The x location to start printing in the grid viewport
The start point (row) in the table array to start printing
The viewport(s) to add the table or text to
the viewport number in vp
to start printing to
The minimum rows before printing more columns to use in the table
padding between cells in the table
padding between multiple columns in the table
should we column optimize (TRUE
) or row optimize
(FALSE
)
Should all columns have equal widths
Should there be a space before the table
should we center the table in the viewport?
Should we make rectangles with background color around the
table entries TRUE
or FALSE
Which rectangles should be filled. Allowed values are
"all"
, "top"
, "side"
, "both"
and NULL
.
The color of the filled rectangles
The line-type for the lines between the cells, using the same values as lty.
Other arguments passed to the various functions.
Andrew Hooker
runsum
, grid.text