make.specs: Construct cell specifications for a tableplot

Description Usage Arguments Details Value Author(s) See Also Examples

Description

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.

Usage

1

Arguments

n

If specified, determines the number of cell specifications generated. Otherwise, the maximum length of any of the dots argument.

as.data.frame

If TRUE, returns the result as a data.frame. Mainly for viewing the results in an easier way.

subset

A list of names of the arguments to cellgram to be included in the result. Mainly used for showing simplified examples.

...

Arguments to cellgram, each given as a single element or a vector. Each argument is replicated to the length of the longest one.

Details

The function uses formals(cellgram)[-1] to retrieve the names of arguments and default values that can be included in assign.sets.

Value

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.

Author(s)

Michael Friendly

See Also

cellgram

Examples

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
	)

friendly/tableplot documentation built on May 16, 2019, 3:30 p.m.