2
\alias{arrangeTableGrobs}
3
\alias{drawDetails.table}
5
\alias{heightDetails.table}
8
\alias{widthDetails.table}
11
tableGrob(d, rows = rownames(d), cols = colnames(d),
12
parse = FALSE, show.rownames = TRUE,
13
show.colnames = TRUE, row.just = "center",
14
col.just = "center", core.just = "center",
15
separator = "white", show.box = FALSE,
16
show.vlines = FALSE, show.hlines = FALSE,
17
show.namesep = FALSE, show.csep = FALSE,
18
show.rsep = FALSE, equal.width = FALSE,
19
equal.height = FALSE, padding.h = unit(4, "mm"),
20
padding.v = unit(4, "mm"), gp = NULL,
21
gpar.coretext = gpar(col = "black", cex = 1),
22
gpar.coltext = gpar(col = "black", cex = 1, fontface = "bold"),
23
gpar.rowtext = gpar(col = "black", cex = 0.8, fontface = "italic"),
24
h.odd.alpha = 1, h.even.alpha = 1, v.odd.alpha = 1,
26
gpar.corefill = gpar(fill = "grey95", col = "white"),
27
gpar.rowfill = gpar(fill = "grey90", col = "white"),
28
gpar.colfill = gpar(fill = "grey90", col = "white"),
34
\item{rows}{vector of row names}
36
\item{cols}{vector of col names}
38
\item{parse}{logical, parse labels as expressions}
40
\item{row.just}{justification of labels}
42
\item{col.just}{justification of labels}
44
\item{core.just}{justification of labels}
46
\item{separator}{colour of the border lines}
48
\item{show.box}{logical box surrounding the table}
50
\item{show.vlines}{logical vertical lines}
52
\item{show.hlines}{logical horizontal lines}
54
\item{show.namesep}{logical draw lines to separate
57
\item{show.csep}{logical extend vert. separator to
60
\item{show.rsep}{logical extend vert. separator to
63
\item{equal.width}{logical}
65
\item{equal.height}{logical}
67
\item{padding.h}{unit of horizontal margin, per cell}
69
\item{padding.v}{unit of vertical margin, per cell}
71
\item{gpar.coretext}{gpar() for inner text}
73
\item{gpar.corefill}{gpar() for inner fill}
75
\item{gpar.coltext}{gpar() for colnames text}
77
\item{h.odd.alpha}{numeric transparency factor for odd
80
\item{h.even.alpha}{numeric transparency factor for even
83
\item{v.odd.alpha}{numeric transparency factor for odd
86
\item{v.even.alpha}{numeric transparency factor for even
89
\item{gpar.colfill}{gpar() for colnames fill}
91
\item{gpar.rowtext}{gpar() for rownames text}
93
\item{gpar.rowfill}{gpar() for rownames fill}
95
\item{show.rownames}{logical}
97
\item{show.colnames}{logical}
101
\item{theme}{theme (list of aesthetic elements)}
103
\item{...}{passed to grob}
106
a grob of class table
109
create a list of text and fill grobs and calculates the
110
sizes for a table display
113
grid.table(head(iris), h.even.alpha=1, h.odd.alpha=1, v.even.alpha=0.5, v.odd.alpha=1)
115
grid.draw(tableGrob(head(iris, 10), name="test"))
116
e = expression(alpha,"testing very large width", hat(beta), integral(f(x)*dx, a, b), "abc")
117
grid.edit("test", cols=e, show.rownames=FALSE, rows=NULL,
118
gpar.corefill = gpar(fill="white", col=NA),
119
grep=TRUE, global=TRUE)
121
grid.draw(tableGrob(head(iris, 10),
122
show.csep=TRUE, show.rsep=TRUE, show.box=TRUE, separator="grey", name="test"))
123
grid.edit("test",gp=gpar(fontsize=8, lwd=2), equal.width=TRUE, grep=TRUE, global=TRUE)
125
lg <- lapply(c("theme.blank", "theme.default", "theme.white", "theme.vertical", "theme.list", "theme.black"),
126
function(x) tableGrob(head(iris[, 1:3]), theme=get(x)()))
128
do.call(grid.arrange, lg)
130
## timing: a bit slow due to repeated on-the-fly calculations
131
pdf("test2.pdf", height=50)
132
print(system.time( grid.table(iris)) ) # about 12s here
137
Other grob userlevel: \code{\link{arcTextGrob}},
138
\code{\link{barbedGrob}}, \code{\link{borderGrob}},
139
\code{\link{colorstripGrob}}, \code{\link{ebimageGrob}},
140
\code{\link{ellipseGrob}}, \code{\link{interleaven}},
141
\code{\link{ngonGrob}}, \code{\link{patternGrob}},
142
\code{\link{pixmapGrob}}, \code{\link{rpatternGrob}},
143
\code{\link{stextGrob}}, \code{\link{virtualGrob}}