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

jet.colors

MATLAB jet function


Description

Creates a vector of n colors beginning with dark blue, ranging through shades of blue, cyan, green, yellow and red, and ending with dark red.

Usage

jet.colors(n)

Arguments

n

numeric scalar specifying number of colors to be in the palette

Value

Returns vector of n color names. This can be used either to create a user-defined color palette for subsequent graphics, a col= specification in graphics functions, or in par.

Author(s)

See Also

Examples

require(graphics)
x <- 1:16
pie(x, col=jet.colors(length(x)))

matlab

MATLAB emulation package

v1.0.2
Artistic-2.0
Authors
P. Roebuck
Initial release
2014-06-19

We don't support your browser anymore

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