pal_d3 | R Documentation |
Color palettes based on the colors used by D3.js.
pal_d3( palette = c("category10", "category20", "category20b", "category20c"), alpha = 1 )
palette |
Palette type.
There are 4 available options:
|
alpha |
Transparency level, a real number in (0, 1].
See |
Nan Xiao <me@nanx.me> | <https://nanx.me>
https://github.com/d3/d3-3.x-api-reference/blob/master/Ordinal-Scales.md
library("scales") show_col(pal_d3("category10")(10)) show_col(pal_d3("category20")(20)) show_col(pal_d3("category20b")(20)) show_col(pal_d3("category20c")(20))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.