Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

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.

Author(s)

Jeff Hallman

See Also

Examples

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

Time Indexes and Time Indexed Series

v1.38
Unlimited
Authors
Jeff Hallman <jeffhallman@gmail.com>
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.