drsimonj_cols: drsimonj colors

View source: R/drsimonj_palettes.R

drsimonj_colsR Documentation

drsimonj colors

Description

Function to extract drsimonj colors as hex codes

red #d11141
green #00b159
blue #00aedb
orange #f37735
yellow #ffc425
light grey #cccccc
dark grey #8c8c8c

Usage

drsimonj_cols(...)

Arguments

...

Character names of drsimonj_colors

Examples

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

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

emilelatour/laviz documentation built on Oct. 15, 2023, 1:41 p.m.