col2hsv | R Documentation |
Convert Hex colours to HSV
col2hsv(hexcol, which = "hsv")
hexcol |
(Character) A vector of hex colours. |
which |
(Character) Which variables to return. |
A dataframe if more than one column is requested in which
,
otherwise a numeric vector.
Desi Quintans (http://www.desiquintans.com)
col2hsv(c("#FFD8B1", "#808000"))
#> h s v
#> 0.08333333 0.3058824 1.0000000
#> 0.16666667 1.0000000 0.5019608
col2hsv(c("#FFD8B1", "#808000"), which = "hv")
#> h v
#> 0.08333333 1.0000000
#> 0.16666667 0.5019608
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.