Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

tim_colors

Tim's Useful Color Table


Description

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

Usage

tim.colors(n = 64)

Arguments

n

is the number of color levels (default = 64).

Details

Based on the tim.colors function in the fields package. The tim.colors function here has been modified to break any dependence on code in the fields package. Spline interpolation (interpSpline) is used when the number of requested colors is not the default.

Value

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

Author(s)

Tim Hoar (GSP-NCAR); modified by Brandon Whitcher

See Also

Examples

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

oro.nifti

Rigorous - 'NIfTI' + 'ANALYZE' + 'AFNI' : Input / Output

v0.11.0
BSD_3_clause + file LICENSE
Authors
Brandon Whitcher [aut, cre], Volker Schmid [aut], Andrew Thornton [aut], Karsten Tabelow [ctb], Jon Clayden [ctb], John Muschelli [aut]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.