tetradic: Tetradic Color Scheme

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/tetradic.R

Description

Tetradic color schemes uses four colors arranged into two complementary pairs.

Usage

1
2
  tetradic(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 tetradic colors are obtained following a color wheel with 12 colors, each one spaced at 30 degrees from each oter.

Value

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

Author(s)

Gaston Sanchez

See Also

complementary, splitComp, adjacent, triadic, square

Examples

1
2
3
4
5
# tetradic colors for 'tomato'
tetradic("tomato")

# tetradic colors for 'tomato' with bg='gray20'
tetradic("tomato", bg = "gray20")

Example output

[1] "#FF6347" "#E3FF47" "#47E3FF" "#6347FF"
[1] "#FF6347" "#E3FF47" "#47E3FF" "#6347FF"

colortools documentation built on May 2, 2019, 2:10 p.m.