Description Usage Arguments Value See Also Examples
Get hex color vector of a named palette from RColorBrewer
, ggthemes
or grDevices
. You can show_col
the vector to
see the effects.
1 | getColFromPal(palname = NULL, n = 6)
|
palname |
name of the palette. Default NULL to get echarts default. Could be:
|
n |
length of the color vector when the palette is continuous ( |
color vectors
RColorBrewer
, scales
, ggthemes
,
show_col
1 2 3 4 5 6 | ## Not run:
library(scales)
show_col(getColFromPal('tableau20'))
show_col(getColFromPal('hc'))
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.