wom_cols: WoM colors

View source: R/wom_palettes.R

wom_colsR Documentation

WoM colors

Description

Function to extract wom colors as hex codes

blue #007bff
indigo #6610f2
purple #6f42c1
pink #e83e8c
red #dc3545
orange #fd7e14
yellow #ffc107
green #28a745
teal #20c997
cyan #17a2b8
white #ffffff
gray #6c757d
graydark #343a40
primary #007bff
secondary #6c757d
success #28a745
info #17a2b8
warning #ffc107
danger #dc3545
light #f8f9fa
dark #343a40

Usage

wom_cols(...)

Arguments

...

Character names of wom_cols

Examples

library(ggplot2)
wom_cols()
wom_cols("red")
wom_cols("red", "blue")
wom_cols("blue", "red")

ggplot(data = mtcars,
       aes(x = hp,
           y = mpg)) +
  geom_point(color = wom_cols("red"),
             size = 4,
             alpha = 0.8) +
  theme_minimal()

emilelatour/laviz documentation built on Nov. 11, 2024, 9:42 p.m.