adjacent: Adjacent or analogous colors

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

View source: R/adjacent.R

Description

Adjacent color schemes use colors that are next to each other on the color wheel. These colors usually match well and create comfortable designs.

Usage

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

Value

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

Author(s)

Gaston Sanchez

See Also

complementary, splitComp, triadic, tetradic, square

Examples

1
2
3
4
5
6
7
8
# analogous colors of 'red'
adjacent("red", plot = FALSE)

# analogous colors of 'tomato' with default color wheel
analogous("tomato")

# analogous colors of '#606FEF' with darker background
adjacent("#606FEF", bg = "gray20")

Example output

[1] "#FF0000" "#FF8000" "#FF0080"
[1] "#FF6347" "#FFBF47" "#FF4787"
[1] "#606FEF" "#9960EF" "#60B7EF"

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