Description Usage Arguments Details References Examples
These functions return hexadecimal colours from the various colour palettes I have collected over time from places including companies I have worked for.
1 2 3 |
cols |
character or numeric vector for the names or the indices of colours
in the palette specified by |
palette |
a string, the colour palette name. |
alpha |
a number between |
... |
parameters passed to either |
To do: how to use.
Currently the available palettes are as follow:
ee
: EE colours, from the official internal branding document.
Internally the colours are in the list ee_hex_cols
in hexadecimal format.
wipro
: Wipro colours, from the initial template (see Reference below).
Internally the colours are in the list wipro_rgb_cols
in RGB format.
Wipro colours are taken from the internal template
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | xlColPal()
xlColPal(c(1, 2, 3))
xlColPal(c('red', 'cyan', 'grey'))
xlColPal(rep(c(1, 2), 3)) # repeats are allowed
xlColPalDisp()
xlColPalDisp(c(1, 2, 3), 'ee')
## Not run:
# What not to do:
xlColPal(c(1, 2, 3), palette = 'wrong') # error, wrong palette name
xlColPal(c(356, 6)) # error, as 356 is outside of 1:10
xlColPal(c(1, 'cyan', 'grey')) # error, mixed cols element types
xlColPal(c('1')) # error, numeric should not be quoted
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.