Learn R Programming

RPMG (version 2.2-2)

shade.col: 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

Value

color vector

Details

Linear interpolation from color1 to color 2.

See Also

rainbow, tomo.col

Examples

Run this code
# NOT RUN {
##  color palette from red to white
shade.col(100, acol = c(1, 0, 0), bcol = c(1, 1, 1))
# }

Run the code above in your browser using DataLab