square

0th

Percentile

Square color scheme

The square color scheme is similar to the tetradic scheme, but with all four colors spaced around the color circle.

Usage
square(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 square colors are obtained following a color wheel with 12 colors, each one spaced at 30 degrees from each other. Square color schemes tend to work best if you let one color be dominant

Value

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

See Also

complementary, adjacent, triadic, tetradic

Aliases
  • square
Examples
# square color scheme for 'tomato'
square("tomato")
Documentation reproduced from package colortools, version 0.1.5, License: GPL-3

Community examples

Looks like there are no examples yet.