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

jet.colors

Generate a sequence of colors alog the jet colormap.


Description

jet.colors(n) generates a sequence of n colors from dark blue to cyan to yellow to dark red. It is similar to the default color schemes in Python's matplotlib or MATLAB.

Usage

jet.colors(n, alpha = 1)

Arguments

n

The number of colors to return.

alpha

The transparency value of the colors. See ?rgb for details.

Value

A vector of colors along the jet colorramp.

See Also

The core function of the package mmer

Examples

{
# Plot a colorbar with jet.colors
image(matrix(seq(100), 100), col=jet.colors(100))
}

sommer

Solving Mixed Model Equations in R

v4.1.3
GPL (>= 2)
Authors
Giovanny Covarrubias-Pazaran
Initial release
2021-04-01

We don't support your browser anymore

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