powered by
Color palette from the BMJ living style guide.
pal_bmj(palette = c("default"), alpha = 1)
Palette type. Currently there is one available option: "default" (9-color palette).
"default"
Transparency level, a real number in (0, 1]. See alpha in grDevices::rgb() for details.
alpha
grDevices::rgb()
Hui Chen | huichen@zju.edu.cn
https://technology.bmj.com/living-style-guide/colour.html
library("scales") show_col(pal_bmj("default")(9)) show_col(pal_bmj("default", alpha = 0.6)(9))
Run the code above in your browser using DataLab