prettyGraphsHSVColorSelection: Algorithmically select HSV colors.

View source: R/prettyGraphsHSVColorSelection.R

prettyGraphsHSVColorSelectionR Documentation

Algorithmically select HSV colors.

Description

This function uses an HSV color selection algorithm to create HSV color palletes.

Usage

prettyGraphsHSVColorSelection(
  n.colors = 1,
  offset = NULL,
  h = 13,
  s = 0.75,
  v = 0.75
)

Arguments

n.colors

number of colors needed

offset

numeric (decimal/percentage). This number decides the distance between indices for color selection. If NULL, the golden ratio is selected.

h

numeric. The initial hue (see hsv).

s

numeric. The initial saturation (see hsv).

v

numeric. The initial value (see hsv).

Value

a matrix

a matrix of colors are returned.

Author(s)

Derek Beaton

HSV selection from here:
http://martin.ankerl.com/2009/12/09/how-to-create-random-colors-programmatically/

See Also

prettyGraphsColors, prettyGraphsColorSelection


prettyGraphs documentation built on April 13, 2025, 1:08 a.m.