Description Usage Arguments Details Value Author(s) See Also Examples
Construct one or more sets of of cell specifications for a tableplot,
using the arguments to cellgram
, to be used as
the assign.sets
argument in a tableplot
.
1 | make.specs(n = NULL, as.data.frame = FALSE, subset, ...)
|
n |
If specified, determines the number of cell specifications generated.
Otherwise, the maximum length of any of the |
as.data.frame |
If |
subset |
A list of names of the arguments to |
... |
Arguments to |
The function uses formals(cellgram)[-1]
to retrieve the names of arguments
and default values that can be included in assign.sets
.
Unless as.data.frame
is TRUE
, returns a list of lists
of arguments to cellgram
that can be used as the assign.sets
argument of tableplot
.
Michael Friendly
1 2 3 4 5 6 7 | # generate 4 sets of cell specifications
specs <- make.specs(
shape=c(0, 0, 0, 2), # circles and squares
cell.fill=c("red","blue","green", "grey40"),
back.fill="white",
scale.max=100
)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.