splitComp | R Documentation |
The split-complementary color scheme is a variation of the complementary color scheme. It uses the two colors adjacent to its complement.
splitComp(color, plot = TRUE, bg = "white", labcol = NULL, cex = 0.8, title = TRUE)
color |
an R color name of 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
|
labcol |
color for the labels (i.e. names of the
colors). Used only when |
cex |
numeric value indicating the character expansion of the labels |
title |
logical value indicating whether to display
a title in the plot. Unsed only when |
This color scheme has the same strong visual contrast as the complementary scheme, but it is supposed to have less tension.
A character vector with the given color and the split-complementary colors in hexadecimal notation
Gaston Sanchez
complementary
# split-complementary colors of 'tomato' (no plot) splitComp("tomato", plot = FALSE) # split-complementary colors of 'tomato' (with dark gray background) splitComp("tomato", bg = "gray40")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.