shade.col: Shaded Color Palette

shade.colR Documentation

Shaded Color Palette

Description

Create a color palette with two end member colors

Usage

shade.col(n, acol = c(1, 0, 0), bcol = c(1, 1, 1))

Arguments

n

number of desired colors

acol

rgb, starting color

bcol

rgb, ending color

Details

Linear interpolation from color1 to color 2.

Value

color vector

Author(s)

Jonathan M. Lees<jonathan.lees.edu>

See Also

rainbow, tomo.col

Examples

##  color palette from red to white
shade.col(100, acol = c(1, 0, 0), bcol = c(1, 1, 1))

RPMG documentation built on Aug. 19, 2023, 5:12 p.m.