Learn R Programming

DAAG (version 1.24)

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)

Arguments

type

type of display - single, multiple or gray shades

order.cols

Arrange colors in order

Value

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

Examples

Run this code
# NOT RUN {
require(MASS)
show.colors()
# }

Run the code above in your browser using DataLab