a4palette: Utility function that defines a color palette for use in a4

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

View source: R/profilePlot.R

Description

Utility function that defines a color palette for use in a4

Usage

1
a4palette(n, alpha = 1, Janssen = FALSE)

Arguments

n

Number of color levels the palette should provid

alpha

alpha transparency level of the colors

Janssen

logical. If TRUE, Janssen Pharmaceutical colors are used (with a maximum of 6 possible colors).

Details

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.

Value

a character vector of colors

Author(s)

Steven Osselaer, Tobias Verbeke

See Also

rainbow palette in palettes

Examples

1
2
3
4
 op <- par(mfrow = c(2, 3))
 for (nGroups in 1:6)
  pie(rep(1, nGroups), a4palette(nGroups))
 par(op)

a4Base documentation built on Nov. 8, 2020, 5:41 p.m.

Related to a4palette in a4Base...