coords | R Documentation |
This function returns a matrix with three columns which give the coordinates of a color in its natural color space.
coords(color)
color |
A color. |
A numeric matrix giving the coordinates of the color.
Ross Ihaka
RGB
, XYZ
, LAB
,
polarLAB
, LUV
, polarLUV
,
mixcolor
.
x <- sRGB(1, 0, 0) coords(as(x, "HSV"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.