rgb.tables {colorRamps}R Documentation

constructs color palettes with sharp breaks

Description

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.

Usage

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)

Arguments

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) }

Value

rgb.tables returns a color palette. table.ramp returns a simple vector of values.

Author(s)

Timothy H. Keitt

See Also

colorRamp

Examples

table.ramp(10)
rgb.tables(10)

[Package colorRamps version 2.2 Index]