Description Usage Arguments Details Value Examples
Make a colour gradient.
1 2 |
... |
Color names. |
len |
Length of the gradient. If more than two colors, the length of
the step (A 4-colour gradient with |
fixed |
A concatenated string indicating the fixed component(s) of
the gradient. One or two components (letters) of either |
order |
If |
plot |
Whether to plot the gradient bar. Default |
texts |
Whether to add text labels to the bar. Default |
Examples of valid fixed
are "hv", "h", "rg"
etc.
Two-colour gradient cannot be used in combination with fixed
.
If only one colour is specified, the colour's position in the gradient
is decided by its brightness (if fixed
is NULL
) or by its
value of the first fixed component (if fixed
is specified).
A vector of colour names.
1 2 3 4 | make.gradient()
make.gradient("turquoise", fixed = "hv")
make.gradient(cyans[1], blues[9], len = 8)
make.gradient(blues[1], reds[1], yellows[1], cyans[1])
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.