complement {shades} | R Documentation |
This function returns the complement of its argument, the "opposite" colours in the specified space.
complement(shades, space = NULL)
shades |
One or more colours, in any suitable form (see
|
space |
The space in which to take the complement. |
New colours of class "shade"
, or a new palette function.
complement("cyan")
complement("cyan", space="HSV")
complement("cyan", space="Lab")