Learn R Programming

fields (version 1.7.2)

tim.colors: Tim's useful color table

Description

A pleasing rainbow style color table patterned after that used in Matlab by Tim.

Usage

tim.colors(n = 64)

Arguments

Value

A vector of character strings giving the colors in a hexadecimal format.

Details

Ask Tim.

See Also

topo.colors, terrain.colors

Examples

Run this code
tim.colors(10) 
# returns an array of 10 strings in hex format
#e.g. (red, green,  blue) values of   (16,255, 239)
# translates to "#10FFEF" .

 

image( outer( 1:20,1:20,"+"), col=tim.colors( 75))

Run the code above in your browser using DataLab