Color palettes based on the colors used by D3.js.
Usage
pal_d3(
palette = c("category10", "category20", "category20b", "category20c"),
alpha = 1
)
Arguments
- palette
Palette type. There are four available options:
"category10"
(10-color palette)."category20"
(20-color palette)."category20b"
(20-color palette)."category20c"
(20-color palette).
- alpha
Transparency level, a real number in (0, 1]. See
alpha
ingrDevices::rgb()
for details.
Author
Nan Xiao | me@nanx.me | https://nanx.me