pal_bmj: BMJ color palettes

View source: R/discrete-bmj.R

pal_bmjR Documentation

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(s)

Hui Chen | huichen@zju.edu.cn

References

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

Examples

library("scales")
show_col(pal_bmj("default")(9))
show_col(pal_bmj("default", alpha = 0.6)(9))

ggsci documentation built on June 22, 2024, 10:29 a.m.