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

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

Arguments

n

number of colors.

interval

interval *to* where to interpolate.

Value

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

Author

Karline Soetaert <karline.soetaert@nioz.nl>

Details

greycol is an alias of graycol

Examples

filled.contour(volcano, color = graycol, asp = 1, main = "greycol,graycol")

graycol(10)
#>  [1] "#FFFFFF" "#EBEBEB" "#D7D7D7" "#C4C4C4" "#B0B0B0" "#9C9C9C" "#888888"
#>  [8] "#747474" "#606060" "#4C4C4C"
image(matrix(nrow = 1, ncol = 100, data = 1:100),
      col = graycol(100), main = "greycol,graycol")