ploptions: Options for package plutils

Description Usage Arguments Details Value See Also Examples

View source: R/ploptions.R

Description

Get or set options for package plutils

Usage

1

Arguments

...

option names given as character string, or given as name = value. Alternatively, options can be passed as simplists.

Details

It is possible to set any options - this might be useful for global options of other packages. This can however also be done with the base function options, the only difference is that ploptions returns a simplist, and resolves simplist arguments, but not list arguments.

Currently, only one options is used by package plutils:

alphamix: logical, defaults to FALSE. Controls the behaviour of alphacol:
if alphamix == TRUE, alphacol returns a color with alpha channel.
Otherwise, the color is an RGB mixed with the background color,
thus faking alpha mixing.

Value

For ploptions(), a simplist of set options for package plutils; if invoked with names of options, a list of all options contained in the arguments. If called with name = value, no visible result is returned.

See Also

The base function options is similar.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
ploptions()
# add a new option
ploptions(schnurz = "piep")
ploptions()
# save options
oldopt <- ploptions()
# change old option, and add a new one
ploptions(schnurz = pi, a = 5)
ploptions()
# reset old options, and change the new one from the step before
ploptions(oldopt, a = 3)
ploptions()

plutils documentation built on May 2, 2019, 5:53 p.m.