Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

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

Arguments

n

number of colors.

interval

interval *to* where to interpolate.

Details

greycol is an alias of graycol

Value

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

Author(s)

Karline Soetaert <karline.soetaert@nioz.nl>

See Also

Examples

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

shape

Functions for Plotting Graphical Shapes, Colors

v1.4.5
GPL (>= 3)
Authors
Karline Soetaert <karline.soetaert@nioz.nl>
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.