colorramp {prada}R Documentation

Interpolate between colors

Description

Interpolate between colors

Usage

colorramp(col)

Arguments

col A vector of colors, as in col2rgb.

Details

The function is adapated from the function colorRamp in the package geneplotter.

Value

A function that takes an integer and produces a color map which interpolates between the colors in col.

Author(s)

Thomas Lumley

Examples

  cr <- colorramp(c("green", "red"))
  cr(5)

[Package Contents]