shade.col {RPMG} | R 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))
[Package RPMG version 2.2-7 Index]