The demopal
wrapper function passes a range of arguments to more specific functions.
Common arguments include:
col_par
Default color for par(col)
;
alpha
Default value for color transparency (in 0:1);
n
A scaling parameter (for random data generation);
main
plot title (on top);
sub
plot subtitle (on right margin);
seed
A random seed value (for reproducible randomness).
The fit between a color palette pal
and plot type
depends on the uses of colors in a plot.
For instance, overlaps of transparent color areas can be evaluated
with plot type = "curve"
or plot type = "scatter"
(and 0 < alpha < 1
).
Some functions additionally accept type-specific arguments
(e.g., beside
, horiz
, and as_prop
, for plot type = "bar"
,
and cex
for plot type = "scatter"
).
The type-specific functions usually generate some random data
(scaled by a parameter n
) that is being plotted.
This data is returned (as an invisible R object)
to enable a plot's reconstruction.