View source: R/utils-hexcolour.R
Display a vector of hex colours (given as character strings).
1 2 | plot_palette(colours, ncol = 2, width = 40, height = 10,
xfraction = 0.99, yfraction = 0.95)
|
colours |
vector of hex colours e.g. |
ncol |
Number of columns |
width, height |
dimensions of each colour swatch |
xfraction, yfraction |
fill fraction of the swatch |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.