color_preview | R Documentation |
Adapted from show_col()
from the
scales
package. Modified to allow for custom labels.
color_preview(colors, labels, columns)
colors |
A character vector of colors |
labels |
A character vector of labels corresponding to |
columns |
Number of columns. If not supplied, tried to be as square as possible. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.