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

hsv_palette

Sequential color palette based on HSV colors


Description

Computes a sequential color palette based on HSV colors by varying the saturation, given hue and value.

Usage

hsv_palette(h = 2/3, from = 0.7, to = 0.2, v = 1)

Arguments

h

hue

from

lower bound for saturation

to

upper bound for saturation

v

value

Value

A function with one argument: the size of the palette, i.e., the number of colors.

Author(s)

See Also

Examples

pie(rep(1, 10), col = hsv_palette()(10))
pie(rep(1, 10), col = hsv_palette(h = 0)(10))

e1071

Misc Functions of the Department of Statistics, Probability Theory Group (Formerly: E1071), TU Wien

v1.7-11
GPL-2 | GPL-3
Authors
David Meyer [aut, cre], Evgenia Dimitriadou [aut, cph], Kurt Hornik [aut], Andreas Weingessel [aut], Friedrich Leisch [aut], Chih-Chung Chang [ctb, cph] (libsvm C++-code), Chih-Chen Lin [ctb, cph] (libsvm C++-code)
Initial release

We don't support your browser anymore

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