clr_extract | R Documentation |
Extract multiple color components at the same time.
clr_extract(
col,
components = c("red", "green", "blue", "hue_hsl", "saturation", "lightness", "hue_hcl",
"chroma", "luminance")
)
col |
A |
components |
A character vector of components that should be extracted. See Details for allowed components. |
The allowed values for components
are:
red
green
blue
hue_hsl
saturation
lightness
hue_hcl
chroma
luminance
clr_extract()
is to be preferred over other extraction functions if you
need to extract multiple components at the same time, since it doesn't
repeat transformations.
A data.frame of components.
Other Extraction:
clr_extract_chroma()
,
clr_extract_hue()
,
extract_rgba()
clr_extract(rainbow(10))
clr_extract(rainbow(10), c("hue_hsl", "saturation"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.