contrasting.palette: Function to give a vector of 22 contrasting colors

View source: R/contrasting_palette.R

contrasting.paletteR Documentation

Function to give a vector of 22 contrasting colors

Description

This function is simply a vector, as rainbow() is for instance. It returns 20 simple and distinct colors found by Sasha Trubetskoy + black and white.

Usage

contrasting.palette(value, black.and.white = TRUE, sequential = TRUE)

Arguments

value

The number of desired contrasted colors. If missing, it returns all 20 (if black.and.white==FALSE) or 22 (if black.and.white==TRUE) of the contrasting palette.

black.and.white

Logical. Choose ot include or not black and white and theend of the list of colors. By default set to TRUE.

sequential

Logical. If the value is a single number, choose if you want to have all colors between the first and the value, or if you want to have the color at the value. By default set too TRUE.

See Also

For further details on this set of 20 of the 22 colors, see https://sashat.me/2017/01/11/list-of-20-simple-distinct-colors/


jacobmaugoust/ULT documentation built on May 16, 2023, 1:29 p.m.