shape (version 1.4.6.1)

greycol: white-black color palette

Description

Creates a vector of (n) contiguous colors from white/grey to black

Usage

greycol(n = 100, interval = c(0.0, 0.7))

Value

a vector of character strings giving the colors in hexadecimal format.

Arguments

n

number of colors.

interval

interval *to* where to interpolate.

Author

Karline Soetaert <karline.soetaert@nioz.nl>

Details

greycol is an alias of graycol

See Also

Examples

Run this code
filled.contour(volcano, color = graycol, asp = 1, main = "greycol,graycol")
graycol(10)
image(matrix(nrow = 1, ncol = 100, data = 1:100),
      col = graycol(100), main = "greycol,graycol")

Run the code above in your browser using DataLab