powered by
Create a color palette with two end member colors
shade.col(n, acol = c(1, 0, 0), bcol = c(1, 1, 1))
color vector
number of desired colors
rgb, starting color
rgb, ending color
Jonathan M. Lees<jonathan.lees.edu>
Linear interpolation from color1 to color 2.
rainbow, tomo.col
## 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