Learn R Programming

DAAG (version 0.37)

show.colors: Show R's Colors

Description

This function displays the built-in colors.

Usage

show.colors(type=c("singles", "shades", "grayshades"), 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
require(MASS)
show.colors()

Run the code above in your browser using DataLab