powered by
Convert R built-in colors to their color complement
complementarycolor(cols, alpha = NULL)
a character vector containing R built-in colors.
alpha value: a two-digit integer between 01 and 99 for color opacity, i.e. appearance of partial or full transparency (usage omitted by default).
complementarycolor returns a vector containing R built-in colors in hexadecimal representation.
complementarycolor
disco, colorpalette, demotour
disco
colorpalette
demotour
# NOT RUN { complementarycolor(c("red","green","blue")) # }
Run the code above in your browser using DataLab