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, # all,top,side,both,NULL
fill.col="grey",
cell.lines.lty=0,
...)add.grid.text(txt,
ystart,
xstart = unit(0, "npc"),
start.pt = 1,
vp,
vp.num = 1,
spaces.before = NULL,
spaces.after = NULL,
v.space.before=0,
v.space.after=0,
use.rect=FALSE,
wdth=NULL,
fill.type=NULL,
fill.col="grey",
cell.lines.lty=0,
xpose.table=gTree(),
...)
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.
Rows added before text is printed out
Rows added after text is printed out
Vertical space above text in a table in "lines" units.
Vertical space below text in a table in "lines" units.
The width of the column of data
A grob object.
Other arguments passed to the various functions.
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.