Learn R Programming

AtmRay (version 1.31)

sky.colors: Sky Colormap

Description

Returns a vector of colors one would see in a sunrise, ranging from orange to blue.

Usage

sky.colors(n)

Arguments

n
length of output color vector

Value

Vector of colors of length n.

Examples

Run this code
col = sky.colors(12)
M = matrix(1:12, 12, 1)
image(M, col = col)

Run the code above in your browser using DataLab