powered by
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
table.ramp
red
green
blue
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, height = 1)
rgb.tables returns a color palette. table.ramp returns a simple vector of values.
number of colors to generate
a length 3 vector with values mid, sill and base
mid
sill
base
same as red
table center on (0, 1)
width of table top on (0, 1)
width of table base on (0, 1)
sill height on (0, 1)
Timothy H. Keitt
Keitt, T. H. (2008) Coherent ecological dynamics induced by large scale disturbance. Nature 454:331-334
colorRamp
table.ramp(10) rgb.tables(10)
Run the code above in your browser using DataLab