palettes | R Documentation |
Palette functions return a function that generates colors. These
_plus()
functions are designed to work like their counterparts in the
scales
package, with the exception that additional standard colors are
appended to the original palettes. The additional colors are not pretty but
some effort has been made to avoid overly similar colors.
brewer_pal_plus(palette = 1, direction = 1)
manual_pal_plus(values)
palette |
If a string, will use that named palette. If a number, will
index into the list of palettes of appropriate |
direction |
Sets the order of colors in the scale. If 1, the default,
colors are as output by |
values |
vector of values to be used as a palette. |
The manual_pal_plus()
is useful mapping specific colors to certain
features.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.