Learn R Programming

shipunov (version 1.17.1)

Ex.col: Examples of colors

Description

Examples of colors (current colors or all named colors)

Usage

Ex.col(all=FALSE)
Ex.cols(all=FALSE)

Arguments

all

Show all named colors?

Author

Alexey Shipunov

Details

If 'all=FALSE' (default), plots current colors along with their names and numeric codes; "white" is added as the first color (with numeric code 0). This plot does not usually look nice if the current palette contains more than 40--45 colors.

If 'all=TRUE', plots all named colors plus (for completedness) "transparent", which also can be used as color specification in R. Large device is required to see all (almost 500) named colors.

For the palettes, run 'example(rainbow)' and other palette-related commands.

See Also

Examples

Run this code
Ex.cols()
Ex.cols(all=TRUE)

Run the code above in your browser using DataLab