sort_colors | R Documentation |
Sort colors by various methods
sort_colors(
color_data,
sort_by = "distribution",
reverse = FALSE,
reference_color = "#FF5500"
)
color_data |
A tibble with 'color' and optionally 'distribution' columns |
sort_by |
Method to sort by: "distribution", "hue", "luminance", "saturation", "temperature", "harmony", "lab", "similarity", "category", or "gradient" |
reverse |
Whether to reverse the sort order |
reference_color |
Reference color for similarity sorting |
A sorted tibble
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.