Learn R Programming

ocean (version 0.1-0)

jet.colors: Jet color ramp

Description

Provides an implementation of a color scheme similar to the Jet colormap produced by matplotlib.

Usage

jet.colors(n)

Arguments

n
The number of colors to produce.

Value

  • A vector of colors of length n.

Examples

Run this code
# Plot a matrix using bathy.colors
  mat <- matrix(seq(100), 100, 1)
  image(mat, col=jet.colors(100))

Run the code above in your browser using DataLab