Description Usage Arguments Details Value Examples
View source: R/create_palette.R
Uses colortools package (and possibly scales) to easily create a color palette based on a initial input color.
1 |
colorhex |
Hexadecimal value of color or an R color name. |
name |
optional name of color |
toHCL |
Convert colors to hcl. Defaults to |
plot |
Plot the results. Defaults to |
alpha |
Transparency. Takes values from 0 to 1. Default is 1. |
Will return complementary, analogous/adjacent, split complementary, triadic, square and tetradic color values relative to the initial color. Note that if you want sequential, qualitative, diverging etc., other packages like RColorBrewer, colorspace, and colortools will do that for you.
A list of colors
1 2 3 | library(visibly)
create_palette(colorhex = '#ff5500', name='orange')
create_palette(colorhex = '#ff5500', name='orange', alpha=.5)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.