hsv_palette: Sequential color palette based on HSV colors

Description Usage Arguments Value Author(s) See Also Examples

View source: R/tune.R

Description

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

Usage

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

David Meyer David.Meyer@R-project.org

See Also

hsv

Examples

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

e1071 documentation built on May 21, 2017, 3:27 a.m.

Search within the e1071 package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs in the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.