style: Construct a Style List

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

Description

Construct an object of class style, a list with unique names.

Usage

1
  style(..., NULL.rm = FALSE)

Arguments

...

objects, should be named if not style objects.

NULL.rm

if TRUE, arguments of value NULL are ignored. Default: FALSE.

Details

Tagged arguments have priority from right to left, that is, if arguments with the same name occur more than once, the value of the last one is picked.

Arguments of class "style" themselves are resolved before integrating into the resulting unique list.

The class name was chosen because the main purpose for styles is to define plotting styles for the use with function splot.

Value

an object of class style, a list with uniquely named elements.

Author(s)

Ute Hahn, ute@imf.au.dk

See Also

splot

Examples

1
2
3
4
5
6
A <- style(a = 1, b = "cool", a = 3)
str(A)
B <- style(a = 2, A, b = NULL, c = list(x = 4, y = 5))
str(B)
str(style(A, B))
str(style(A, B, NULL.rm = TRUE))


Search within the plottools package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.