Warning it is not clear how to sort colors properly. As of now, only one way is implemented here. First we transform the hex values to RGB and then to HSV. Then we apply pca retaining only 1 componen and sort it.
1 | sort_colours(col = NULL, method = "PCA_HSV")
|
col |
color vector in hex format |
method |
only "PCA_HSV" is implemented |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.