| ploptions | R Documentation |
Get or set options for package plutils
ploptions(...)
... |
option names given as character string, or given as |
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. |
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.
The base function options is similar.
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()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.