| a4palette {a4Base} | R Documentation |
Utility function that defines a color palette for use in a4
a4palette(n, alpha = 1, Janssen = FALSE)
n |
Number of color levels the palette should provid |
alpha |
alpha transparency level of the colors |
Janssen |
logical. If |
For n = 1, "blue" is returned; for n = 2
c("red", "blue") is returned; for n = 3
c("red", "green", "blue" is returned; for n = 4
c("red", "green", "blue", "purple") is returned and for n > 2,
the output of rainbow(n) is returned.
a character vector of colors
Steven Osselaer, Tobias Verbeke
rainbow palette in palettes
op <- par(mfrow = c(2, 3)) for (nGroups in 1:6) pie(rep(1, nGroups), a4palette(nGroups)) par(op)