Learn R Programming

RPMG (version 2.2-2)

rainbow.colors: rainbow.colors

Description

Color palette of n rainbow colors

Usage

rainbow.colors(n)

Arguments

n

Nmber of colors desired

Value

Character vector of n colors from the default rainbow palette.

Details

rainbow.colors is set to match other color palette selections like topo.colors, terrain.colors

See Also

topo.colors, terrain.colors, palette

Examples

Run this code
# NOT RUN {
rainbow.colors(100)
# }

Run the code above in your browser using DataLab