statworx_palette: A palette based on STATWORX's CI colors

View source: R/statworx_palette.R

statworx_paletteR Documentation

A palette based on STATWORX's CI colors

Description

A palette based on STATWORX's CI colors.

Usage

statworx_palette(
  number = length(basecolors),
  reorder = FALSE,
  basecolors = c(1, 2, 3, 5, 10),
  scheme = "old"
)

Arguments

number

a numeric with the number of colors. The default is the length of basecolors.

reorder

a boolean, if TRUE the order will be sampled, which can make groups next to each other a little bit more separable.

basecolors

a numeric vector with the used color indices of sci_palette.

scheme

a string that indicates if the "new" or the "old" STATWORX CI is used. The default is still "old" to not break existing code.

Author(s)

Jakob Gepp

Examples

number <- 16
plot(data.frame(x =  1:number, y = 1),
     col = statworx_palette(number, FALSE),
     pch = 16, cex = 5)


STATWORX/helfRlein documentation built on Feb. 12, 2024, 2:21 a.m.