frColors: FRB Color Palettes

Description Usage Arguments Value Author(s) See Also Examples

View source: R/setColors.R

Description

Returns a vector of 11 color names that can be used as a palette suitably for a light or dark background.

Usage

1
frColors(dark = FALSE)

Arguments

dark

If TRUE return a set of colors suitable for drawing on a black background. The first color is "white". If FALSE (the default), return colors suitable for drawing on a white background, with the first color set to "black".

Value

A vector of 11 color names.

Author(s)

Jeff Hallman

See Also

setColors, colors

Examples

1
2
3
4
plot.new()
for(i in 1:11) abline(h = (i-0.5)/11, lwd = 2, lty = 1, col = frColors()[i])
plot.new()
for(i in 1:11) abline(h = (i-0.5)/11, lwd = 2, lty = 1, col = frColors(dark = TRUE)[i])

tis documentation built on Sept. 29, 2021, 1:06 a.m.