triadic: Triadic Color Scheme

View source: R/triadic.R

triadicR Documentation

Triadic Color Scheme

Description

Triadic color schemes use colors that are evenly spaced around the color wheel.

Usage

  triadic(color, plot = TRUE, bg = "white", labcol = NULL,
    cex = 0.8, title = TRUE)

Arguments

color

an R color name or a color in hexadecimal notation

plot

logical value indicating whether to plot a color wheel with the generated scheme

bg

background color of the plot. Used only when plot=TRUE

labcol

color for the labels (i.e. names of the colors). Used only when plot=TRUE

cex

numeric value indicating the character expansion of the labels

title

logical value indicating whether to display a title in the plot. Used only when plot=TRUE

Details

The triadic colors are obtained following a color wheel with 12 colors, each one spaced at 30 degrees from each other. Triadic color schemes tend to be quite vibrant. To use a triadic harmony successfully, the colors should be carefully balanced letting one color dominate and use the others for accent.

Value

A character vector with the given color and the triadic colors in hexadecimal notation

Author(s)

Gaston Sanchez

See Also

complementary, splitComp, adjacent, tetradic, square

Examples

# triadic colors of 'tomato'
triadic("tomato")

# triadic colors of 'tomato' with background color 'gray20'
triadic("tomato", bg = "gray20")

gastonstat/colortools documentation built on April 8, 2022, 5:59 a.m.