HSV.Rd
This function creates colors of class HSV; a subclass of the virtual
color-class
class.
HSV(H, S, V, names)
These arguments give the hue, saturation and value of the
colors. The values can be provided in separate H
, S
and
V
vectors or in a three-column matrix passed as H
.
A vector of names for the colors (by default the row names of
H
are used).
An object of class HSV
which inherits from class color
.
This function creates colors in an HSV color space. The hues should lie between between 0 and 360, and the saturations and values should lie between 0 and 1.
HSV is a relative color space; it is a transformation of an RGB color
space. Conversion of HSV colors to any other color space must first
involve a conversion to a specific RGB color space, for example the
standard sRGB
color space (IEC standard 61966).
# A rainbow of full-intensity hues
HSV(seq(0, 360, length.out = 13)[-13], 1, 1)
#> H S V
#> [1,] 0 1 1
#> [2,] 30 1 1
#> [3,] 60 1 1
#> [4,] 90 1 1
#> [5,] 120 1 1
#> [6,] 150 1 1
#> [7,] 180 1 1
#> [8,] 210 1 1
#> [9,] 240 1 1
#> [10,] 270 1 1
#> [11,] 300 1 1
#> [12,] 330 1 1