| resolve_colors | R Documentation |
Returns exactly n colours. Priority order:
resolve_colors(n, colors = NULL)
n |
Integer. Number of colours required. |
colors |
Character vector, palette name, or |
Explicit colors argument - vector or palette name string.
getOption("highdir.colors") - set via hd_set_theme().
Built-in hdir rules:
n == 2 -> "hdir2" two-colour teal/purple pair
n <= 10 -> "hdir" 10-colour brand palette
n > 10 -> viridis continuous scale
Character vector of exactly length n.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.