Learn R Programming

DAAG (version 1.25.6)

show.colors: Show R's Colors

Description

This function displays the built-in colors.

Usage

show.colors(type=c("singles", "shades", "gray"), order.cols=TRUE)

Value

A plot of colors for which there is a single shade (type = "single"), multiple shades (type = "multiple"), or gray shades (type = "gray")

Arguments

type

type of display - single, multiple or gray shades

order.cols

Arrange colors in order

Author

J.H. Maindonald

Examples

Run this code
require(MASS)
show.colors()

Run the code above in your browser using DataLab