Description Usage Arguments Details Value Author(s) See Also Examples
View source: R/complementary.R
Complementary or opposite color scheme is formed by colors that are opposite each other on the color wheel (example: red and green). The high contrast of complementary colors creates a vibrant look that must be managed well so it is not jarring.
1 2 |
color |
an R color name or 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. Used ony when |
The complementary color is obtained following a color wheel with 12 colors, each one spaced at 30 degrees from each other. Complementary color schemes are tricky to use in large doses, but work well when you wnat something to stand out. In addition, omplementary colors are really bad for text.
A character vector with the given color and the complementary color in hexadecimal notation
Gaston Sanchez
adjacent
, splitComp
,
triadic
, tetradic
,
square
1 2 3 4 5 |
[1] "#FF6347" "#47E3FF"
[1] "#FF6347" "#47E3FF"
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.