rgb.tables {colorRamps} | R Documentation |
rgb.tables
wraps table.ramp
and simply passes values
supplied in the red
, green
and blue
arguments. table.ramp
makes a color ramp with a flat top.
rgb.tables(n, red = c(0.75, 0.25, 1), green = c(0.5, 0.25, 1), blue = c(0.25, 0.25, 1)) table.ramp(n, mid = 0.5, sill = 0.5, base = 1)
n |
number of colors to generate |
red |
a length 3 vector with values mid , sill and base |
green |
same as red |
blue |
same as red |
mid |
|
sill |
|
base |
{ width of table base on (0, 1) }
rgb.tables
returns a color palette. table.ramp
returns a
simple vector of values.
Timothy H. Keitt
table.ramp(10) rgb.tables(10)