Learn R Programming

ggsci (version 3.2.0)

pal_bmj: BMJ color palettes

Description

Color palette from the BMJ living style guide.

Usage

pal_bmj(palette = c("default"), alpha = 1)

Arguments

palette

Palette type. Currently there is one available option: "default" (9-color palette).

alpha

Transparency level, a real number in (0, 1]. See alpha in grDevices::rgb() for details.

Author

Hui Chen | huichen@zju.edu.cn

References

https://technology.bmj.com/living-style-guide/colour.html

Examples

Run this code
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