Description Usage Arguments Value Examples
Convert a vector of colors to a given color format.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 | convert_col(x, type)
to_hsv(x, na.rm = FALSE)
to_hsv_string(x, na.rm = FALSE)
to_hsl(x, na.rm = FALSE)
to_hsl_string(x, na.rm = FALSE)
to_hex(x, na.rm = FALSE)
to_hex_string(x, na.rm = FALSE)
to_hex8(x, na.rm = FALSE)
to_hex8_string(x, na.rm = FALSE)
to_rgb(x, na.rm = FALSE)
to_rgb_string(x, na.rm = FALSE)
to_percentrgb(x, na.rm = FALSE)
to_percentrgb_string(x, na.rm = FALSE)
to_name(x, na.rm = FALSE)
to_filter(x, na.rm = FALSE)
to_string(x, na.rm = FALSE)
|
x |
a any type color string or a javascript color object specifying. |
type |
The formats will convert to. |
na.rm |
a logical value indicating whether NA values should be stripped before the computation proceeds. |
A string of the color in most cases.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | to_hsv("red")
to_hsv_string("red")
to_hsl("#222")
to_hsl_string("#222")
to_hex("{r: 120, g: 90, b: 180}")
to_hex_string("{r: 120, g: 90, b: 180}")
to_hex8("{r: 120, g: 90, b: 180, a: 0.2}")
to_hex8_string("{r: 120, g: 90, b: 180, a: 0.2}")
to_rgb("blue")
to_rgb_string("blue")
to_percentrgb("#785AB4")
to_percentrgb_string("#785AB433")
to_name("#FF0000")
to_filter("red")
to_string("red")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.