Learn R Programming

tis (version 1.39)

frColors: FRB Color Palettes

Description

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

Usage

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.

See Also

setColors, colors

Examples

Run this code
# NOT RUN {
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])
# }

Run the code above in your browser using DataLab