Learn R Programming

IDPmisc (version 0.3.1)

col2hsv: Converting Color to hsv Code

Description

Converts color names or values to hsv code.

Usage

col2hsv(col)

Arguments

col
Vector of color code.

Value

  • Matrix with the rows
  • hHue of hsv-Signal: 0=red, 1/3=green, 2/3=blue, 1=red.
  • sSaturation of hsv-Signal: 0=white, 1=full color.
  • vValue of hsv-Signal: 0=black, 1=full color.

See Also

col2rgb, rgb2hsv, hsv

Examples

Run this code
col2hsv(c("blue","green","red"))

Run the code above in your browser using DataLab